PowerShell folder permission error - Some or all identity references could not be translated.

后端 未结 4 1796
长发绾君心
长发绾君心 2020-12-18 22:03

I have read many posts about this, but I still can\'t get it. I am running this script as Admin and It does create the folders requred, just does not set the appropriate per

4条回答
  •  粉色の甜心
    2020-12-18 22:25

    For me it was a case of where i verified whether the script execution knew the password by using $user = Get-Credential "username". i had to turn my $user into $user.UserName To give the script parameters the value they were expecting

提交回复
热议问题