我想在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
最佳答案
这是因为Rename-Computer
是在Powershell 3.0中引入的
关于powershell - 术语 'Rename-Computer'无法识别为cmdlet的名称,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23119372/