Hi
I'm trying to use the credentials of the service administrator in a PS script, but i'm having problems:
"Cannot bind argument to parameter 'String' because it is null. Stack trace: at <ScriptBlock>, <No file>: line 6"
Using the example from the guides:
$username = $Context.RunAs.UserName
$password = ConvertTo-SecureString $Context.RunAs.Password -AsPlainText -Force
The error refers to the line containing $password.
Any ideas?