Powershell Servermanager module not included in Windows Web Server 2008 R2

This is driving me nuts!

Apparently using the servermanager module should be as easy as type:

Import-Module servermanager

The problem is that I don't have it.

PS C:\Users\Administrator> Get-Module -ListAvailable


    Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules


ModuleType Name                                ExportedCommands                                           
---------- ----                                ----------------                                           
Manifest   BitsTransfer                        {Add-BitsFile, Remove-BitsTransfer, Complete-BitsTransfe...
Manifest   CimCmdlets                          {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstanc...
Script     ISE                                 {New-IseSnippet, Import-IseSnippet, Get-IseSnippet}        
Manifest   Microsoft.PowerShell.Diagnostics    {Get-WinEvent, Get-Counter, Import-Counter, Export-Count...
Manifest   Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}                        
Manifest   Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemProperty, Join-Pa...
Manifest   Microsoft.PowerShell.Security       {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}  
Manifest   Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, Format-Wide...} 
Manifest   Microsoft.WSMan.Management          {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCre...
Script     PSDiagnostics                       {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-...
Binary     PSScheduledJob                      {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-...
Manifest   TroubleshootingPack                 {Get-TroubleshootingPack, Invoke-TroubleshootingPack}      
Manifest   WebAdministration                   {Start-WebCommitDelay, Stop-WebCommitDelay, Get-WebConfi...


    Directory: C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules


ModuleType Name                                ExportedCommands                                           
---------- ----                                ----------------                                           
Manifest   SQLASCMDLETS                        {Add-RoleMember, Backup-ASDatabase, Invoke-ASCmd, Invoke...
Manifest   SQLPS                               {Backup-SqlDatabase, Add-SqlAvailabilityDatabase, Disabl...

Any attempt to search in Google "Install servemanager module" returns thousands of pages to install things using the servermanager module! :-\

I'm using an up-to-date copy of Windows Web Server 2008 R2 with Service Pack 1, and Powershell v4.


Solution 1:

Solved! I had to use the 32-bit version of Powerhell as the module is in the folder: C:\Windows\System32\WindowsPowerShell\v1.0\Modules\

Solution 2:

Look in C:\Windows\System32\WindowsPowerShell\v1.0\Modules and you should see a ServerManager folder. If you do not, then the module isn't available.

As far as I know, this module is only available on 2008 R2 Standard and above. My 2008 (non-R2) server lacked it, but my standard one has it. Also, make sure you're using the 64-bit PowerShell and not 32-bit.