June 2025
Beginner to intermediate
473 pages
13h 30m
English
Before you start programming your first scripts, you should interactively familiarize yourself with the options provided by PowerShell. The following examples should be understandable without basic knowledge. You’ll come across the commands used in this process again and again later. Details of individual commands (actually, they are cmdlets, but we’ll deal with this term later) can be obtained from Get-Help <command name>.
In the following listing, Get-Location determines the current path. Set-Location changes to the Downloads subdirectory where Get-ChildItem determines all files that have the *.exe extension. Finally, Remove-Item deletes a setup program.
> Get-Location Path ---- C:\Users\kofler> Set-Location ...
Read now
Unlock full access