This is the way to determine which PowerShell Snap-Ins and Modules are available in Windows Server 2008 R2…

 

PS C:\> Get-PSSnapin

Name : Microsoft.PowerShell.Diagnostics

PSVersion : 2.0

Description : This Windows PowerShell snap-in contains Windows Eventing and Performance Counter cmdlets.

 

Name : Microsoft.WSMan.Management

PSVersion : 2.0

Description : This Windows PowerShell snap-in contains cmdlets (such as Get-WSManInstance and Set-WSManInstance) that are used by the Windows PowerShell host to manage WSMan operations.

 

Name : Microsoft.PowerShell.Core

PSVersion : 2.0

Description : This Windows PowerShell snap-in contains cmdlets used to manage components of Windows PowerShell.

 

Name : Microsoft.PowerShell.Utility

PSVersion : 2.0

Description : This Windows PowerShell snap-in contains utility Cmdlets used to manipulate data.

 

Name : Microsoft.PowerShell.Host

PSVersion : 2.0

Description : This Windows PowerShell snap-in contains cmdlets (such as Start-Transcript and Stop-Transcript) that are provided for use with the Windows PowerShell console host.

 

Name : Microsoft.PowerShell.Management

PSVersion : 2.0

Description : This Windows PowerShell snap-in contains management cmdlets used to manage Windows components.

 

Name : Microsoft.PowerShell.Security

PSVersion : 2.0

Description : This Windows PowerShell snap-in contains cmdlets to manage Windows PowerShell security.

 

….Loading the Snap-In is done by: Add-PSSnapin <String Name>
(e.g. Add-PSSnapin Microsoft.PowerShell.Security)

 

PS C:\> Get-Module -ListAvailable

ModuleType Name ExportedCommands
----------------------- -------------------------
Manifest ActiveDirectory {}
Manifest ADRMS {}
Manifest AppLocker {}
Manifest BestPractices {}
Manifest BitsTransfer {}
Manifest GroupPolicy {}
Manifest PSDiagnostics {}
Manifest ServerManager {}
Manifest TroubleshootingPack {}
Manifest WebAdministration {}

 

….Loading the Module is done by: Import-Module <ModuleType Name>
(e.g. Import-Module ActiveDirectory)

 

Cheers,

Jorge

--------------------------------------------------------------------------------------------------
* This posting is provided "AS IS" with no warranties and confers no rights!
* Always test before implementing!
--------------------------------------------------------------------------------------------------
############### Jorge's Quest For Knowledge ###############
######## http://blogs.dirteam.com/blogs/jorge/default.aspx #########
--------------------------------------------------------------------------------------------------