Process.start() is failed on run with special account...why?
来源:互联网 发布:js 计数器 编辑:程序博客网 时间:2024/05/22 08:28
1: What i want?
Run a program with domain\administrator and make this program run a command-line
2: My Code
Processstartinfo myprocessstartinfo = new myproecessstartinfo();
myprocesstartinfo.domain = Domain;
myprocesstartinfo.username = administrator;
myprocessstartinfo.password = mysecurestringofpassword;
myprocessstartinfo.arguments = command-line;
myprocessstartinfo.useshellexecute = false;
3: Problem:
When i do debug on VS2010, a command-line windows is running with "administrator", not "domain\administrator" and does not run the arguments.
When i remove the "argument", running again, the command-line window is still running but not with domain\administrator.
If i remove the info related with "domain\administrator", the arguments are running.
Adding is that i have run vs2010 with administrator previlige.
Can someone help me on this?
Thank you.
Dicuss link:
http://bbs.csdn.net/topics/390280790
- Process.start() is failed on run with special account...why?
- failed to start git process
- run process with specific user
- nginx报错:nginx.service failed to run 'start-pre' task: No space left on device
- How to run Process Guard under a limited account
- Tip: Run process in system account (sc.exe)
- Test run failed: Instrumentation run failed due to 'Process crashed.'
- Why is QsslSocket working with Qt 5.3 but not Qt 5.7 on Debian Stretch?
- [Linux]TigerVNC failed on start
- OPMN Process Manager failed to start
- PATH is different if login with same account but through different way on ubuntu(Not figure out yet)
- Start With Kotlin On Android
- "Login failed for user 'sa'. Reason: The account is disabled.
- Why doesn't Genymotion run on Windows 10?
- How to use OpenID to sign on with Google account
- Setup TomCat on centOS7 with the none-admin account
- Test run failed: Instrumentation run failed due to 'Process crashed.'解析
- Unable to start debugging on the web server. Debugging failed because integrated windows authentication is not enabled.
- HGE修改引擎适用于MFC的子窗口的修改
- 获得用户的GUI版本的函数
- 写了个挺好玩的程序
- Animating Pie Slices Using a Custom CALayer
- 设置程序以管理员模式运行
- Process.start() is failed on run with special account...why?
- C++中参数传递问题
- pl/sql存储过程loop死循环
- 关于bash启动脚本/etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc的区别
- 跟我一起学Oracle 11g【1】----基础回顾
- 领导力大挑战
- 项目设置player设置里设置分辨率 unity输出竖屏等
- 任意宽度灰度BMP图像读写 V1
- ios 编译静态库