Glossary

Glossary

Plain English definitions for the terms used across the lessons, with examples, related terms, and links to relevant lessons.

Showing all 48 terms. Use the letters below to jump to a section, or search to narrow the list.

A (4 terms)

Action

The part of a scheduled task that says what runs.

An action is usually a program with arguments, such as powershell.exe with a script path.

Example

New-ScheduledTaskAction -Execute "powershell.exe"

Related: Scheduled task

Learn more in these lessons

Active Directory

The directory service that holds users, computers, groups, and organisational units in a domain.

Domain controllers answer logon and directory requests. PowerShell manages AD with the Active Directory module, given the right permissions.

Example

Get-ADUser -Filter * lists domain users.

Related: Domain, Organisational unit (OU), Group

Learn more in these lessons

Array

A list of values held in one variable.

Arrays are indexed from zero. $list[0] is the first item, and $list.Count is the number of items.

Example

$servers = "srv1", "srv2"

Related: Variable, Foreach

Learn more in these lessons

  • Arrays (Chapter 3: Think in Objects, Not Text)

Authenticode signature

A digital signature on a file that shows who signed it, and whether the file changed after signing.

PowerShell can check the signature with Get-AuthenticodeSignature, which reports a status such as Valid or NotSigned. A signature check is about trust in the file, not a proof that the code is free of bugs.

Example

Get-AuthenticodeSignature on a signed script can report a Valid status with the signer shown.

Related: Execution policy, Script

C (4 terms)

Cmdlet

A small PowerShell command with a Verb-Noun name, such as Get-Process.

Cmdlets are the building blocks of PowerShell. They take input, do one job, and return objects. You combine them with the pipeline to do larger jobs.

Example

Get-Service lists services.

Related: Pipeline, Parameter, Object

Learn more in these lessons

Constrained language mode

A PowerShell language mode that limits what script code can do, to reduce risk on a managed system.

In this mode, PowerShell blocks some types, methods, and language features that could be misused, so scripts can only use the safer set that remains.

Example

In constrained language mode, a script that tries to use a blocked type fails instead of running that part.

Related: Execution policy, Script

Learn more in these lessons

Control structure

A code pattern that decides order: sequence, selection, or iteration.

Sequence runs step by step. Selection uses if and else. Iteration uses for, while, and foreach.

Example

if ($x -eq 1) { "one" }

Related: Foreach

CSV

Comma separated values: a table stored as text, with headers in the first row.

Import-Csv turns rows into objects. Export-Csv turns objects into rows. Use -NoTypeInformation so other tools read the file cleanly.

Example

Import-Csv -Path "users.csv"

Related: Object

Learn more in these lessons

D (7 terms)

Data type

The kind of value a variable holds, such as string, int, bool, datetime, or array.

Type decides what operations make sense. Text plus text joins. Numbers plus numbers adds. Check a type with $value.GetType().Name.

Example

[int]$count = 5

Related: Variable

Learn more in these lessons

Deserialised object

An object returned from remoting, with properties but usually without live methods.

Remoting serialises objects to send them back, then rebuilds them locally. The shape survives, but methods that would need the remote computer do not.

Example

Invoke-Command results are deserialised.

Related: Remoting, Method

DNS record

A single mapping inside a DNS zone, such as a host name to an address.

Common types are A for IPv4, AAAA for IPv6, and SRV for services such as domain controllers.

Example

Add-DnsServerResourceRecord -ZoneName "example.local" -A -Name "srv1"

Related: DNS zone

Learn more in these lessons

DNS zone

A part of the DNS namespace that one server is responsible for, such as example.local.

Zones hold resource records. An A record maps a host name to an IPv4 address. An SRV record points to a service.

Example

New-DnsServerZone -Name "example.local"

Related: DNS record

Learn more in these lessons

Domain

A boundary for policy and replication inside a forest, such as example.local.

Computers join a domain to trust its controllers for logons. Users log on with domain accounts.

Example

Add-Computer -DomainName "example.local"

Related: Forest, Domain controller

Learn more in these lessons

Domain controller

A server that holds a copy of the domain directory and answers authentication requests.

The first controller in a forest is created with Install-ADDSForest. Later controllers join with Install-ADDSDomainController.

Example

Get-ADDomainController -Filter *

Related: Domain, Forest

Learn more in these lessons

Drive

A named entry point into a provider store, such as C: or HKLM:.

Drives give you a short path into a store. Move between them with Set-Location.

Example

Set-Location Env: moves into environment variables.

Related: Provider

Learn more in these lessons

E (1 term)

Execution policy

A setting that controls which script files may run.

Policies include Restricted, RemoteSigned, AllSigned, and Unrestricted. It stops accidents, but it is not a full security boundary on its own.

Example

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Related: Script

Learn more in these lessons

F (6 terms)

Fine grained password policy (FGPP)

A password policy that applies to a group, instead of one policy for the whole domain.

FGPP is stored as a password settings object. The lowest precedence number wins when a user is covered by several policies.

Example

New-ADFineGrainedPasswordPolicy -Name "AdminPolicy" -Precedence 10

Related: Group

Learn more in these lessons

Firewall profile

A set of firewall settings for a network type: Domain, Private, or Public.

Public is strictest, because the network is not trusted. A rule can apply to one profile or to all of them.

Example

Get-NetFirewallProfile lists profiles.

Related: Firewall rule

Learn more in these lessons

Foreach

A loop that runs once per item in a collection.

Foreach puts each item in a loop variable in turn. It is the clearest loop for admin lists.

Example

foreach ($s in $servers) { Write-Output $s }

Related: Array, Control structure

Learn more in these lessons

Forest

The top level of Active Directory, holding one or more domains.

Domains in a forest share a schema, configuration, and global catalog.

Example

Install-ADDSForest creates a new forest.

Related: Domain

Learn more in these lessons

Function

A named block of code you define once and call many times.

Functions take parameters, run a body, and return output. Advanced functions add CmdletBinding and safety switches.

Example

function Get-Greeting { param([string]$Name) "Hello, $Name" }

Related: Parameter, Script

Learn more in these lessons

G (2 terms)

Group

A collection of users or computers, used to give permissions once, to the group.

Give permissions to a group, then add or remove members. Role changes then mean membership changes, not permission edits everywhere.

Example

New-ADGroup -Name "SalesTeam" -GroupScope Global

Related: Organisational unit (OU)

Learn more in these lessons

Group Policy Object (GPO)

A collection of settings that applies to users and computers in a domain.

GPOs are linked to sites, domains, or OUs. Only linked GPOs affect objects under the link. Resultant set of policy shows what finally applies.

Example

Get-GPO -All lists GPOs.

Related: Organisational unit (OU)

I (1 term)

IntelliSense

PowerShell completion help, opened with Ctrl plus Space in the console and in VS Code.

IntelliSense suggests command names, parameter names, and values as you type, instead of making you type long names from memory.

Example

Type Get-Ser, press Ctrl plus Space.

Related: Cmdlet

Learn more in these lessons

L (1 term)

Logical operator

An operator that combines conditions, such as -and, -or, and -not.

Logical operators build complex tests in if statements and Where-Object filters. Parentheses control the order they are evaluated in.

Example

{ $_.Status -eq "Running" -and $_.CPU -gt 10 }

Related: Control structure

M (3 terms)

Measured Boot

A boot process that records measurements of firmware and boot components, so they can be checked later.

Each boot component is measured as it loads, and the measurements are stored safely for comparison against known good values.

Example

Measured Boot values stored during startup can be compared later to see whether boot software changed.

Related: Secure Boot, Trusted Boot, TPM

Learn more in these lessons

Method

An action an object can do, such as Stop or ToUpper.

Call a method with parentheses: $text.ToUpper(). Methods on remote results are usually gone, because deserialised objects keep properties, not live methods.

Example

"hello".ToUpper() gives HELLO.

Related: Object, Remoting

Learn more in these lessons

  • Objects (Chapter 3: Think in Objects, Not Text)

Module

A package of commands, functions, and help for one area, such as Active Directory.

Modules keep PowerShell organised. Install puts a module on the computer. Import loads it into your session.

Example

Import-Module ActiveDirectory

Related: Cmdlet, Function

Learn more in these lessons

O (2 terms)

Object

A structured value with properties (facts) and methods (actions).

PowerShell commands return objects, not text. A process object has a Name property and a Kill method. Inspect any object with Get-Member.

Example

(Get-Date).DayOfWeek reads one property.

Related: Property, Method, Cmdlet

Learn more in these lessons

Organisational unit (OU)

A container inside a domain that organises users and computers.

OUs give a clear target for delegation and Group Policy. An OU is not a group, and a group is not an OU.

Example

New-ADOrganizationalUnit -Name "Sales"

Related: Group, Group Policy Object (GPO)

Learn more in these lessons

P (6 terms)

Parameter

A named input to a command, written with a hyphen, such as -Name.

Parameters change what a command does without changing its name. Some take a value, some are switches that are simply present or absent.

Example

Get-Service -Name Spooler

Related: Parameter binding, Cmdlet

Learn more in these lessons

Parameter binding

How PowerShell matches pipeline input to a command parameters.

PowerShell first tries by value (the object type matches), then by property name (a property name matches a parameter name). If neither matches, the pipeline cannot bind.

Example

Get-Service | Stop-Service can bind by property name in some cases.

Related: Pipeline, Parameter

Learn more in these lessons

Pipeline

The pipe character, written as |, which passes objects from one command to the next.

The left command produces objects, and the right command receives them. Nothing is turned into text in between, so properties survive the trip.

Example

Get-Process | Where-Object { $_.CPU -gt 10 }

Related: Object, Parameter binding

Learn more in these lessons

Property

A fact stored on an object, such as Name or Id.

Read a property with dot notation: $process.Name. Pick properties with Select-Object.

Example

$service.Status shows a service status.

Related: Object, Method

Learn more in these lessons

  • Objects (Chapter 3: Think in Objects, Not Text)

Provider

An adapter that makes a data store look like a drive.

Providers cover the file system, the registry, certificates, variables, and more. The same commands, such as Get-ChildItem, work on every provider drive.

Example

HKLM: is the registry drive.

Related: Drive, PSDrive

Learn more in these lessons

PSDrive

A PowerShell drive, listed by Get-PSDrive.

PSDrives include file system drives, registry drives, and custom drives you create for a task.

Example

Get-PSDrive lists all drives.

Related: Drive, Provider

Learn more in these lessons

R (1 term)

Remoting

Running commands on another computer over WinRM and getting the results back.

Invoke-Command runs one command on many computers. Enter-PSSession opens an interactive session on one computer. Returned objects are deserialised: properties survive, methods usually do not.

Example

Invoke-Command -ComputerName srv1 -ScriptBlock { Get-Service }

Related: WinRM, Object

S (4 terms)

Scheduled task

A task that runs a program at a time, on a schedule, or on an event.

A task has an action (what runs), a trigger (when), a principal (who), and settings (how it behaves). Disable pauses a task without deleting it.

Example

Register-ScheduledTask creates a task.

Related: Trigger, Action

Learn more in these lessons

Script

A text file of PowerShell commands, saved with a .ps1 ending.

Scripts make work repeatable. Run one by typing its path. Execution policy controls whether scripts may run.

Example

.\backup.ps1 runs a script in the current folder.

Related: Execution policy, Function

Learn more in these lessons

Secure Boot

A firmware security feature that only lets trusted boot software start the computer.

During boot, firmware checks signatures on boot software before it runs. If a boot component is not trusted, it does not start.

Example

A computer with Secure Boot turned on refuses an unsigned boot loader, instead of starting from it.

Related: Trusted Boot, Measured Boot, TPM

Learn more in these lessons

Service account

An account used by a service to run, not by a person to log on interactively.

Services need an identity and permissions to do their work. A service account should have only the permissions its service needs, and nothing more.

Example

A backup service runs under its own service account, so it does not need a personal user account to work.

Related: Scheduled task

Learn more in these lessons

T (4 terms)

TPM

A Trusted Platform Module, a security chip or firmware feature that stores keys and boot measurements safely.

A TPM keeps sensitive values apart from normal storage, and it can hold keys that are only usable when the boot state is as expected.

Example

A TPM can store a key used to protect a disk, and hold boot measurements from Measured Boot.

Related: Secure Boot, Measured Boot

Transcript

A text record of a PowerShell session, including commands typed and output shown.

Start-Transcript begins the record, and Stop-Transcript ends it. The record is useful for review, auditing, and finding what went wrong.

Example

Start-Transcript -Path "C:\Temp\session.txt" records a session to that file.

Related: Script

Learn more in these lessons

Trigger

The part of a scheduled task that says when it runs.

Triggers include daily at a time, at logon, or on an event. A task needs at least one trigger to run on its own.

Example

New-ScheduledTaskTrigger -Daily -At 2am

Related: Scheduled task

Learn more in these lessons

Trusted Boot

A Windows boot protection step that checks boot components after Secure Boot, including the kernel and drivers.

Trusted Boot extends the early boot checks to later Windows components, and it can record problems for later review.

Example

Trusted Boot checks the Windows kernel and early drivers before they load, as part of a trusted start.

Related: Secure Boot, Measured Boot, TPM

Learn more in these lessons

V (1 term)

Variable

A named value, written with a dollar sign, such as $name.

Variables hold text, numbers, dates, arrays, or objects. Automatic variables, such as $HOME, are created by PowerShell itself.

Example

$name = "Izaz"

Related: Array, Object

Learn more in these lessons

W (1 term)

WinRM

Windows Remote Management, the service that carries remoting commands and results.

Test-WSMan checks whether WinRM answers on a target before you try a real remoting command.

Example

Test-WSMan -ComputerName srv1

Related: Remoting