我有一个c++服务应用程序,它启动Powershell脚本(Powershell.exe script.ps1)。在脚本中运行一个可执行文件,但需要使用不同的用户凭据运行。有没有一种方法可以在Powershell中使用invoke-expression cmdlet或其他方法来实现这一点?
I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...