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
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