脚本运行在Windows的exe作为特定用户 [英] script to run exe as specific user in windows
问题描述
我在某些位置c .exe文件:/foo/myhost.exe实际上在系统创建MSMQ队列,我需要运行特定用户(网络帐户)。我期待的脚本,业务用户可以登录到服务器点击exe文件(但应为网络帐户运行)。我可以按住shift右键点击exe文件,但我期待自动化。
I have a .exe file in some location C:/foo/myhost.exe which actually creates MSMQ queues in the system and I need to run that a specific user (Network account). I am looking for script where business user can login to the server click the exe(But it should run as network account). I can shift-right-click on exe but I am looking to automate it.
任何帮助是pciated AP $ P $
Any help is appreciated
推荐答案
与SAVECRED选择运行方式
runas with savecred option
http://anyadangtech.blogspot.ca/2009/06/运行方式且不password.html
但你需要在第一次运行输入passwd文件。此后,它会记住在passwd。
But you need to run the first time to input the passwd. Afterwards it will remember the passwd.
这篇关于脚本运行在Windows的exe作为特定用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!