Computing.Net > Forums > Windows XP > Need run once batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Need run once batch file

Reply to Message Icon

Name: bbarry
Date: September 13, 2007 at 15:33:26 Pacific
OS: Windows XP Pro
CPU/Ram: .
Product: .
Comment:

I administrate a computer lab and we build an image and use Symantec Ghost to load it into the lab PCs.

I need an exe file to run once as ADMIN when the first USER logs on. I was looking at runas in a batch file but it doesn't seem to have an option to put the password in the command line (like "net use"), it only has the option of prompting you after the command is run. The user that logs on will not have the admin password. Is there a way to put the password in the command line or another way to do this altogether?

Thanks for your help



Sponsored Link
Ads by Google

Response Number 1
Name: Ed in Texas.
Date: September 14, 2007 at 02:31:17 Pacific
Reply:

bbarry, Been a while since I did any programing, but seems to me you could simply define the password (within quotes?) as string data and then echo the string? Would that publish the PW?
HTH.
Ed in Texas.


0

Response Number 2
Name: Razor2.3
Date: September 14, 2007 at 04:15:51 Pacific
Reply:

Not really; it doesn't seem like runas.exe uses standard I/O. It rejects anything piped in, be it command or file.

He might want to try setting something up with schtasks.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


The setup was aborted by ... Full Screen?



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Need run once batch file

Run Batch File once www.computing.net/answers/windows-xp/run-batch-file-once/134800.html

Auto-run batch file to system error messages www.computing.net/answers/windows-xp/autorun-batch-file-to-system-error-messages/175672.html

batch file using date command to cr www.computing.net/answers/windows-xp/batch-file-using-date-command-to-cr/151468.html