April 2019
Intermediate to advanced
372 pages
12h 47m
English
Just explore Get-Command -Verb Get to find all read-only cmdlets and simply have a look at what the return values are. There's no harm in trying!
On your way to building a perpetuum mobile? Make PowerShell execute all Get cmdlets for some fun:
$ErrorActionPreference = 'SilentlyContinue'Get-Command -Verb Get | ForEach-Object { & $_ }
The ampersand operator will invoke an expression. By iterating over each Get cmdlet that is returned by Get-Command, we try to read everything we can get our hands on. Please be aware that this will take some time.
Read now
Unlock full access