O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Active Directory module

It is not necessary to always load the Active Directory module (or for that matter any module) because Windows PowerShell 3.0 automatically loads the module containing a referenced cmdlet. The location searched by Windows PowerShell for modules comes from environment variable PSModulePath. To view the value of this environment variable, prefix the variable name with the environment drive. The following command retrieves the default module locations and displays the associated paths:

PS C:\> $env:PSModulePath
C:\Users\ed.IAMMRED\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\
v1.0\Modules\

If you do not want to install the Active Directory module on your client operating systems, all ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required