更新时间:2023-02-25 17:47:34
还有其他一些替代方法可以帮助实现这一目标,例如PsExex工具. https://technet.microsoft.com/en-us/sysinternals/psexec.aspx
There are also some other alternatives which can help in achieving this like PsExex Tool. https://technet.microsoft.com/en-us/sysinternals/psexec.aspx
您可以从Process类中提供所需的参数(如用户名,密码,要启动的过程),它将使用这些用户凭据成功启动它.
You can provide the required parameters (like username , password ,the process to start) from Process class and it will launch it successfully using those user credentials.
有关更多信息:-例如psexec \ workstation64 -c test.bat -u用户名-p密码
E.g. psexec \workstation64 -c test.bat -u USERNAME -p PASSWORD
对于我来说,它没有任何问题.
It works in my case without any issue.