Current location: Hot Scripts Forums » Programming Languages » Visual Basic » VB Starting a Process as Another User


VB Starting a Process as Another User

Reply
  #1 (permalink)  
Old 11-15-03, 03:54 AM
siva_manikoth siva_manikoth is offline
New Member
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Angry VB Starting a Process as Another User

I have a VB application deployed on a Windows 2000
Domain Server. This application is launched each time a
client logs on to the domain. Client machines are
either 2000 or NT. I do not have any problem with 2000
clients.

I have a VB program, deployed on server, lets say
A.EXE, which will call another VB program B.EXE. B.EXE
has to perform administrative functions on the client
machine. A.EXE is launched when a normal user logs
in. So I need a way to pass on administrative
privileage to B.EXE. I can not use LogonUser()
function since I can not grant 'Act as part of the
operating system' privileage to the user.
Reply With Quote
  #2 (permalink)  
Old 12-03-03, 10:40 AM
Emmanuel Emmanuel is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

It seems to be a security grant problem. Try this :

Take the VB exe which needs to execute administrative functions and transform it to a NT4 service with the specific NT Ressource Kit command for it. Make sure that the A.exe doesn't call anymore for B.exe and add a dos command at log on with the Net command to start the service.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
process form without press submit button azwani JavaScript 1 11-03-03 01:10 AM
user management and searching.. alvibd Script Requests 1 09-27-03 12:53 PM
Ad management and optimisation using php surebetdmg PHP 0 08-28-03 06:45 PM
Modify user settings... amailer Hot Scripts Forum Questions, Suggestions and Feedback 1 07-14-03 08:49 AM
send mail to user onlynils New Members & Introductions 1 07-04-03 01:18 PM


All times are GMT -5. The time now is 01:17 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.