Invoke-CommandAs icon indicating copy to clipboard operation
Invoke-CommandAs copied to clipboard

Invoke Command As System/Interactive/GMSA/User on Local/Remote machine & returns PSObjects.

Results 14 Invoke-CommandAs issues
Sort by recently updated
recently updated
newest added

In PowerShell Core 6.2, this error is returned: `Invoke-ScheduledTask : The term 'Register-ScheduledJob' is not recognized as the name of a cmdlet, function, script file, or operable program.` Since the...

help wanted

When running as a GMSA, either locally or remotely, the GMSA must have admin on the server. If the GMSA doesn't have admin, the command will get stuck in a...

Hi guys, I really apriciete the possibility to download this module directly from GitHub. But since there are no tags here, I have to search appropriet commit hashes to ensure...

enhancement
help wanted
good first issue

Hello, I have a issue on 2012 R2 ENG : PS C:\Users\Administrator> Invoke-CommandAs -ScriptBlock { Get-Process } -AsSystem New-ScheduledTaskAction : Invalid class At C:\Program Files\WindowsPowerShell\Modules\Invoke-CommandAs\3.1.6\private\Invoke-ScheduledTask.ps1:89 char:49 + ... 'Action'] =...

bug
help wanted

Would be great for this to support NetworkService as a credential to run as. Thanks

enhancement

I'd like to invoke as NT AUTHORITY\LOCAL SERVICE instead of System which has a bit too much power for what I need. I tried to implement it myself but it...

Hi I'm trying to execute some scripts, order to display some popups in the users session - and I have succeeded in this, by using the -AsSystem and combining with...

Cannot serialize the credential. If this command is starting a workflow, the credentials cannot be persisted, because the process in which the workflow is started does not have permission to...

I'm having trouble to figure this out for a couple days, I was hoping you might have some insight: Running this ` Invoke-CommandAs -ScriptBlock { Write-Output 'Test'} -AsUser $credObject -verbose`...

Running as system administrator, impersonating a user doesn't work. I expect whoami to return 'MyUser'. ``` PS C:\windows\system32> whoami nt authority\system PS C:\windows\system32> $user="MyUser" PS C:\windows\system32> $pass="MyPass" PS C:\windows\system32> $secpass...