I am getting an error when using Get-Disk cmdlet
Windows version: Microsoft Windows Server 2008 R2 SP1 64b
Windows 2008 R2 powershell The term 'Get-Disk' is not recognized as the name of a cmdlet. I have version 3 of Powershell
PS C:\Windows\system32> Get-Disk
Get-Disk : The term 'Get-Disk' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Disk
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Disk:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Windows\system32> $PSVersionTable`
Name Value
---- -----
WSManStackVersion 3.0
PSCompatibleVersions {1.0, 2.0, 3.0}
SerializationVersion 1.1.0.1
BuildVersion 6.2.9200.16398
PSVersion 3.0
CLRVersion 4.0.30319.1
PSRemotingProtocolVersion 2.2
Get-Command -Module Storage
? If not, tryImport-Module Storage
, and then the first one again. Just to identify if you're missing the module or auto-loading is not working – Frode F.