Is there a way to invoke-uascript and sepcify the runas identity?
Product: PowerShell Universal
Version: 1.4.6
Is there a way to invoke-uascript and sepcify the runas identity?
Product: PowerShell Universal
Version: 1.4.6
You can specify the -Credential
parameter. It’s expecting a variable contains the credential of the user you’d like to run as.
$MyUser = Get-UAVariable -Name 'MyUser'
Invoke-UAScript -Credential $MyUser -Script "MyScript.ps1"
Adam. Thank you. Feel Dumb. . .
Worked like a charm.