»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-02-2003, 09:40 AM   #1 (permalink)
Registered User
 
PeterGriffin's Avatar
 
Join Date: Nov 2002
Posts: 339
PeterGriffin is on a distinguished road
Help with Batch File

Is there a way that I can do a "run as" from the command line, or in a batch file. I want to set something up to run a users computers but it has to be done with administrator privileges.

Please help.

PeterGriffin is offline   Reply With Quote
Old 10-02-2003, 09:59 AM   #2 (permalink)
Registered User
 
SpookyEddy's Avatar
 
Join Date: Oct 2001
Location: UK
Posts: 3,125
SpookyEddy is on a distinguished road
Code:
runas runas /user:DOMAIN_NAME\USER_ACCOUNT COMMAND_TO_EXECUTE
That works for me on this XP box anyway but you need to type in the password.

Stupid code tags are broken, that shouldnt be a smilie. I will try and fix it when I get a sec.

Regards

ed

Last edited by SpookyEddy; 10-02-2003 at 10:02 AM.
SpookyEddy is offline   Reply With Quote
Old 10-02-2003, 10:28 AM   #3 (permalink)
Registered User
 
PeterGriffin's Avatar
 
Join Date: Nov 2002
Posts: 339
PeterGriffin is on a distinguished road
where does the password go?

I want this to run without user intervention, nor my (as admin) intervention.
PeterGriffin is offline   Reply With Quote
Old 10-02-2003, 10:41 AM   #4 (permalink)
Registered User
 
davidamarkley's Avatar
 
Join Date: May 2002
Location: Joplin, MO
Posts: 2,208
davidamarkley is on a distinguished road
Send a message via ICQ to davidamarkley Send a message via AIM to davidamarkley
Here's a link to the syntax of this command.

Here's what SpookyEddy meant:



HTH,

David
__________________
-David
davidamarkley is offline   Reply With Quote
Reply




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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 10:19 PM.