May 2007
Beginner
320 pages
8h 23m
English
In this exercise, we explore Windows environmental settings.
Open Windows PowerShell.
Use the Get-WmiObject cmdlet to view the common properties of the WIN32_Environment WMI class. Use the gwmi alias to make it easier to type. This command is shown here:
gwmi win32_environment
The partial output from this command is shown here:
VariableValue Name UserName ------------- ---- -------- C:\PROGRA~1\CA\SHARED~1... AVENGINE <SYSTEM> %SystemRoot%\system32\c... ComSpec <SYSTEM> NO FP_NO_HOST_CHECK <SYSTEM>
To view all the properties of the WIN32_Environment class, pipeline the object returned by the Get-WmiObject cmdlet to the Format-List cmdlet while specifying the asterisk. Use the up arrow to retrieve the previous ...