.NET FISHER

专注.NET, Sharepoint, MCMS, WinFX, Ajax....

导航

Running an application command line with different credentials

Posted on 2004-11-30 00:57  FISHER  阅读(623)  评论(0编辑  收藏  举报

Running an application command line with different credentials

runas /user:Administrator program.exe

Enabling ASP.NET to run as another user on Windows XP Professional

As an Administrator, edit the attributes of the file"%INSTALLROOT%\Config\machine.config" 'on the processModel tag, as shown:

<processModel
                enable="true"
                userName="DOMAIN\username"
                password="MyPswd2"
                ...
/ >