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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.