One Step Further: Windows Environment Settings

In this exercise, we explore Windows environmental settings.

  1. Open Windows PowerShell.

  2. 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
  3. 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>
  4. 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 ...

Get Microsoft® Windows PowerShell™ Step By Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.