Lecture 18: Scripting and Automation

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/37

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key scripting and automation terms from Lecture 18.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

38 Terms

1
New cards

Script

A sequence of instructions, written in a scripting language, that tells a program to perform tasks.

2
New cards

Scripting Language

A programming language with limited functionality and easy syntax, often interpreted and used for automation (e.g., VBScript, Python).

3
New cards

Client-Side Script

Script executed in a user’s browser or local environment.

4
New cards

Server-Side Script

Script executed on a server to generate responses for clients.

5
New cards

Windows Script Host (WSH)

Windows environment that lets users create and run scripts in plain text files.

6
New cards

WSH Core

The component that ties WSH together and integrates with the operating system or application.

7
New cards

Scripting Engine

Provides language support within WSH (e.g., VBScript, JScript, PerlScript).

8
New cards

Scripting Host

Executable that actually runs a script; in WSH these are wscript.exe and cscript.exe.

9
New cards

wscript.exe

GUI-based WSH host; outputs to dialog boxes and pauses until user clicks OK.

10
New cards

cscript.exe

Command-line WSH host; outputs to console and runs without user intervention.

11
New cards

Digital Signature (WSH)

Cryptographic stamp that verifies script origin and integrity before execution.

12
New cards

PowerShell

Microsoft’s object-based interactive shell and scripting language built on .NET.

13
New cards

Cmdlet

Smallest unit of functionality in PowerShell, written as verb-noun (e.g., Get-Help).

14
New cards

Parameter (PowerShell)

Named option passed to a cmdlet, preceded by a hyphen (e.g., -Name).

15
New cards

Object (PowerShell)

Digital representation containing properties and methods manipulated in PowerShell.

16
New cards

Property (PowerShell)

An attribute or part of a PowerShell object.

17
New cards

Method (PowerShell)

An action that can be performed on or by a PowerShell object.

18
New cards

Variable (PowerShell)

Storage location for data; always starts with $, can hold single objects or arrays.

19
New cards

Pipeline (|)

Passes the output (objects) of one cmdlet as input to another in PowerShell.

20
New cards

Comparison Operators

PowerShell operators such as -eq, -ne, -gt, -lt, -like for comparing values.

21
New cards

get-content

Cmdlet that reads a text file into an array, one line per element.

22
New cards

import-csv

Cmdlet that reads a .csv file into an array of objects with properties from the header row.

23
New cards

add-content

Cmdlet that appends data to an existing file.

24
New cards

set-content

Cmdlet that replaces the contents of a file.

25
New cards

export-csv

Cmdlet that writes objects to a .csv file, creating a header row.

26
New cards

While Loop (PowerShell)

Loop that repeats commands while a condition is true.

27
New cards

For Loop (PowerShell)

Loop that initializes, tests, and increments a variable to repeat commands.

28
New cards

For Each Loop (PowerShell)

Iterates through each item in a collection (e.g., foreach ($obj in $objs) {…}).

29
New cards

Flow Control (if/elseif/else)

Conditional statements that run code blocks based on logical tests.

30
New cards

Execution Policy

PowerShell security setting that controls whether scripts can run.

31
New cards

RemoteSigned

Execution policy allowing locally-created scripts and digitally signed remote scripts.

32
New cards

Unrestricted

Execution policy allowing all scripts to run; least secure.

33
New cards

PowerShell Remoting

Capability to run PowerShell commands on remote computers.

34
New cards

WinRM / WS-MAN

Web Services-Management protocol used by PowerShell for robust remoting.

35
New cards

Enable-PSRemoting

Cmdlet that configures a system for WS-MAN remoting (starts WinRM, sets firewall).

36
New cards

Enter-PSSession

Cmdlet that starts an interactive remote PowerShell session.

37
New cards

Windows Task Scheduler

Windows tool that runs executables or scripts at scheduled times or in response to events.

38
New cards

cron

Linux/Unix service that schedules recurring tasks (mentioned for comparison).