. "However, there is an error that pops up in the powershell window and I would like to handle this error before I proceed.The error is as below :Exception calling \"set_Login with 1 argument(s): Cannot apply value `null' to property Login: Value cannot be null.At line:11 char:33+ $srv.ConnectionContext.set_Login <<<< ($uname); + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + Fu" . . .