|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
I work for a company where the server administrators have two login ID's. One without admin right that we use to log into our workstations and one with admin rights that we use to for server administration. A co-worker and I put together an app in VB.Net that lets us click a button to do things that require admin rights like opening certain applications. We use runas to open the app with our admin id's and then any option we select opens using the admin credentials. Everything works fine with the exception of opening a UNC path. process.start(explorer, "\\server\share") 'does nothing process.start("\\server\share") 'will open the UNC path, but not with the administrative credentials that the app runs under. We are prompted for credentials and when we enter the id and password that the app runs under the path is opened no problem. Has anyone seen this problem before, or have any suggestions? Thanks!! Chad Im taking a guess here; but it is possible that when you spawn another
process this way, that the spawned process picks up the current windows principal not the Runas account used. You would be advised to attempt to also spawn a Runas for the internet explorer being started. process.start( "Runas explorer . . . . . Show quoteHide quote "Mr. Novice" <MrNov***@discussions.microsoft.com> wrote in message news:0875DDB1-8AB8-4A3D-9367-CCA8630DD14B@microsoft.com... > Hello, > > I work for a company where the server administrators have two login ID's. > One without admin right that we use to log into our workstations and one > with > admin rights that we use to for server administration. A co-worker and I > put > together an app in VB.Net that lets us click a button to do things that > require admin rights like opening certain applications. We use runas to > open > the app with our admin id's and then any option we select opens using the > admin credentials. Everything works fine with the exception of opening a > UNC > path. > > process.start(explorer, "\\server\share") 'does nothing > > process.start("\\server\share") 'will open the UNC path, but not with > the administrative credentials that the app runs under. We are prompted > for > credentials and when we enter the id and password that the app runs under > the > path is opened no problem. > > Has anyone seen this problem before, or have any suggestions? > > Thanks!! > > Chad > > Great idea. We tried it and no luck. Any other suggestions?
Chad Show quoteHide quote "OHM ( One Handed Man )" wrote: > Im taking a guess here; but it is possible that when you spawn another > process this way, that the spawned process picks up the current windows > principal not the Runas account used. You would be advised to attempt to > also spawn a Runas for the internet explorer being started. > > process.start( "Runas explorer . . . . . > > -- > ( OHM ) - One Handed Man > AKA Terry Burns - http://TrainingOn.net > > > "Mr. Novice" <MrNov***@discussions.microsoft.com> wrote in message > news:0875DDB1-8AB8-4A3D-9367-CCA8630DD14B@microsoft.com... > > Hello, > > > > I work for a company where the server administrators have two login ID's. > > One without admin right that we use to log into our workstations and one > > with > > admin rights that we use to for server administration. A co-worker and I > > put > > together an app in VB.Net that lets us click a button to do things that > > require admin rights like opening certain applications. We use runas to > > open > > the app with our admin id's and then any option we select opens using the > > admin credentials. Everything works fine with the exception of opening a > > UNC > > path. > > > > process.start(explorer, "\\server\share") 'does nothing > > > > process.start("\\server\share") 'will open the UNC path, but not with > > the administrative credentials that the app runs under. We are prompted > > for > > credentials and when we enter the id and password that the app runs under > > the > > path is opened no problem. > > > > Has anyone seen this problem before, or have any suggestions? > > > > Thanks!! > > > > Chad > > > > > > > OK, your Security setting in internet explorer will need to be set to
Automatically log you on with the current username and password. Now if this doesent work, then it means that explorer is looking at the currently logged on ID when connecting to remote sites rather than using Runas. Try and take a look TOOLS | INTERNET OPTIONS | SECURITY | CHOOSE YOUR ZONE | SCROLL DOWN TO USER LOGON SETTINGS HTH Show quoteHide quote "Mr. Novice" <MrNov***@discussions.microsoft.com> wrote in message news:E9BC5DFD-3532-43F6-9B19-4B7A2ED652C8@microsoft.com... > Great idea. We tried it and no luck. Any other suggestions? > > Chad > > "OHM ( One Handed Man )" wrote: > >> Im taking a guess here; but it is possible that when you spawn another >> process this way, that the spawned process picks up the current windows >> principal not the Runas account used. You would be advised to attempt to >> also spawn a Runas for the internet explorer being started. >> >> process.start( "Runas explorer . . . . . >> >> -- >> ( OHM ) - One Handed Man >> AKA Terry Burns - http://TrainingOn.net >> >> >> "Mr. Novice" <MrNov***@discussions.microsoft.com> wrote in message >> news:0875DDB1-8AB8-4A3D-9367-CCA8630DD14B@microsoft.com... >> > Hello, >> > >> > I work for a company where the server administrators have two login >> > ID's. >> > One without admin right that we use to log into our workstations and >> > one >> > with >> > admin rights that we use to for server administration. A co-worker and >> > I >> > put >> > together an app in VB.Net that lets us click a button to do things that >> > require admin rights like opening certain applications. We use runas to >> > open >> > the app with our admin id's and then any option we select opens using >> > the >> > admin credentials. Everything works fine with the exception of opening >> > a >> > UNC >> > path. >> > >> > process.start(explorer, "\\server\share") 'does nothing >> > >> > process.start("\\server\share") 'will open the UNC path, but not >> > with >> > the administrative credentials that the app runs under. We are prompted >> > for >> > credentials and when we enter the id and password that the app runs >> > under >> > the >> > path is opened no problem. >> > >> > Has anyone seen this problem before, or have any suggestions? >> > >> > Thanks!! >> > >> > Chad >> > >> > >> >> >>
Structure vs Class Objects
Is there a wrapping routine in the .NET Framework?? Picturebox Q: DataGrid Sort how can I exit from a recursive subroutine? Which can i Select ASP.NET or VB.NET Unable to use Property instead of Sub in Thread stored procedure in VB binding source? Calculating Standard Deviation? RESOURCE FILE PROBLEM |
|||||||||||||||||||||||