mkellerman / Invoke-CommandAs

Invoke Command As System/Interactive/GMSA/User on Local/Remote machine & returns PSObjects.
https://www.powershellgallery.com/packages/Invoke-CommandAs/
MIT License
458 stars 70 forks source link

Fix run AsInteractive. #56

Closed the-mentor closed 3 years ago

the-mentor commented 3 years ago

AsInteractive wasn't invoked as Invoke-ScheduledTask since it wasn't included in the if statement. this fixes the issue and allows running as interactive session remotely. Also I've bumped the version to match the latest version in the PowerShell gallery.