使用Get-Disk cmdlet时出错
Windows版本:Microsoft Windows Server 2008 R2 SP1 64b
Windows 2008 R2 powershell术语"Get-Disk"无法识别为cmdlet的名称.我有Powershell的第3版
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
Run Code Online (Sandbox Code Playgroud)
PS C:\ Windows\system32> $ …