术语"重命名计算机"不被识别为cmdlet的名称

We *_*han 2 powershell

我想在Windows 7 Sp1中使用PowerShell 2.0重命名计算机,但它出错了.

PS C:\Windows\system32> Rename-Computer -NewName PC02
The term 'Rename-Computer' is not recognized as the name of a cmdlet, function, script f
ile, or operable program. Check the spelling of the name, or if a path was included, ver
ify that the path is correct and try again.
At line:1 char:16
+ Rename-Computer <<<<  -NewName PC02
    + CategoryInfo          : ObjectNotFound: (Rename-Computer:String) [], CommandNotFo 
   undException
    + FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)

Koh*_*brr 5

那是因为Rename-Computer在Powershell 3.0中引入了