2
我想在Windows 7 Sp1中使用PowerShell 2.0重命名計算機,但出現錯誤。術語'重命名計算機'不被識別爲cmdlet的名稱
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
+1 Yep。 http://technet.microsoft.com/en-us/library/hh849792%28v=wps.620%29.aspx –
那麼我該怎麼做,將Powershell升級到3.0或在2.0中使用其他cmdlet可以做到這一點? –
@WeRubChan如果你想使用'Rename-Computer',你需要升級到v3(如果可能,我建議升級)。否則[這裏](http://powershell.com/cs/media/p/922.aspx)是一種在v2中重命名的方法。 – Kohlbrr