|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Running System.Diagnostics.Process as NT userI am attempting to create a Process object and run it as the logged on NT
user. How can I set the user context for a Process. I am running the Process from a web service. Running .Net 2.0 Beta1; Windows Server 2003 I have gotten it to work by setting the Identiy on the Application Pool set on the Virtual Directory containing this web service to a specific user. However, this web service will be called by more than user on the domain, thus this won't work except for the one user. Is there another option? Thanks, Ryan Yup. The WebService, like any HTTP server application, always runs under the
same account, regardless of who logs onto it. -- Show quoteHTH, Kevin Spencer Microsoft MVP ..Net Developer Ambiguity has a certain quality to it. "rmunson8" <rmuns***@discussions.microsoft.com> wrote in message news:3D99739A-65B7-4B9E-BFD4-693F11557CF9@microsoft.com... >I am attempting to create a Process object and run it as the logged on NT > user. How can I set the user context for a Process. > > I am running the Process from a web service. > > Running .Net 2.0 Beta1; Windows Server 2003 > > I have gotten it to work by setting the Identiy on the Application Pool > set > on the Virtual Directory containing this web service to a specific user. > However, this web service will be called by more than user on the domain, > thus this won't work except for the one user. Is there another option? > > Thanks, > Ryan I would agree, but was wondering if there is another option?
Show quote "Kevin Spencer" wrote: > Yup. The WebService, like any HTTP server application, always runs under the > same account, regardless of who logs onto it. > > -- > HTH, > > Kevin Spencer > Microsoft MVP > ..Net Developer > Ambiguity has a certain quality to it. > > "rmunson8" <rmuns***@discussions.microsoft.com> wrote in message > news:3D99739A-65B7-4B9E-BFD4-693F11557CF9@microsoft.com... > >I am attempting to create a Process object and run it as the logged on NT > > user. How can I set the user context for a Process. > > > > I am running the Process from a web service. > > > > Running .Net 2.0 Beta1; Windows Server 2003 > > > > I have gotten it to work by setting the Identiy on the Application Pool > > set > > on the Virtual Directory containing this web service to a specific user. > > However, this web service will be called by more than user on the domain, > > thus this won't work except for the one user. Is there another option? > > > > Thanks, > > Ryan > > > |
|||||||||||||||||||||||