Skip to Main Content
Microsoft® Windows PowerShell™ Step By Step
book

Microsoft® Windows PowerShell™ Step By Step

by Ed Wilson
May 2007
Beginner content levelBeginner
320 pages
8h 23m
English
Microsoft Press
Content preview from Microsoft® Windows PowerShell™ Step By Step

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows PowerShell™ 3.0 Step by Step

Windows PowerShell™ 3.0 Step by Step

Ed Wilson
Windows PowerShell® 2.0 Bible

Windows PowerShell® 2.0 Bible

Thomas Lee, Karl Mitschke, Mark E. Schill, Tome Tanasovski
Windows Server® 2008 Active Directory® Resource Kit

Windows Server® 2008 Active Directory® Resource Kit

Conan Kezema Stan Riemer Mike Mulcare, Byron Wright, and Microsoft Active Directory

Publisher Resources

ISBN: 9780735623958Catalog PageErrataSupplemental Content