Powershell无法识别Rename-LocalUser

时间:2018-01-04 19:11:18

标签: powershell

这是错误。

Rename-LocalUser : The term 'Rename-LocalUser' 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
+ Rename-LocalUser
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Rename-LocalUser:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

1 个答案:

答案 0 :(得分:0)

Rename-LocalUser cmdlet为only available in PowerShell 5.1 or later。如果您在Windows 8或更早版本(或相应的Windows Server版本)上运行,则必须download and install the WMF 5.1 package;它不会自动安装。在Windows 10(或相应的Windows Server版本)上,可以使用Fall Creator的更新自动安装