June 2025
Beginner to intermediate
473 pages
13h 30m
English
In this section, I’ll briefly introduce you to some other cmdlets that are often needed but don’t fit the content of any of the previous sections:
Get-Command <name>Get-Command <name> returns information about a cmdlet or command. For cmdlets, the Source property reveals the underlying module. With conventional commands, on the other hand, you can evaluate the Path property—then, you’ll know where the command is installed (comparable to which on Linux):
> (Get-Command Get-ChildItem).Source Microsoft.PowerShell.Management> (Get-Command ping.exe).Path C:\Windows\system32\PING.EXE
Get-HistoryGet-History returns a list of all recently executed commands.
Get-RandomGet-Random returns a random number between 0 and 2,147,483,647. ...
Read now
Unlock full access