Add support for running powershell and batch commands as logged in user
Now it only supports to be run as system. If I want to run checks or commands on the specific user that is logged in, this can only be done through a workaround by creating a task as user in task scheduler, but without me getting a response afterwards. So I don't know if it succeeded or not.
Comments: 1
-
14 Feb, '21
Johnny JAgreed.
And a workaround for the time being:
Install the powershell module " RunAsUser " (also add error handling to not run anything until it's actually finished installing as it can be delayed sometimes) then build a scriptblock and Invoke-AsCurrentUser