Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:\Users\Administrator> Import-Module ServerManager
PS C:\Users\Administrator> Get-WindowsFeature
Get-WindowsFeature : Failed to initialize.
At line:1 char:19
+ Get-WindowsFeature <<<<
+ CategoryInfo : OperationStopped: (:) [Get-WindowsFeature], COMException
+ FullyQualifiedErrorId : DiscoveryFailed,Microsoft.Windows.ServerManager.Commands.GetWindowsFeatureCommand
PS C:\Users\Administrator> servermanagercmd.exe -query roles.xml
Servermanagercmd.exe is deprecated, and is not guaranteed to be supported in future releases of Windows. We recommend th
at you use the Windows PowerShell cmdlets that are available for Server Manager.
.........
Error: Failed to initialize.
PS C:\Users\Administrator>