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
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?
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.
Summary: As part of deploying standardized software for my clients, I am faced with the question of having the user run a batch file only once...the very first time they log in. I remember there was a registry...
Summary: This is an interesting question and I would be very grateful for any help. I'm working in a government university in Thailand, and the IT systems here are pretty rough and ready. There are several de...
Summary: I am trying to run a batch file that backs up directories into a new directory that has the current date in the form YYYY-MM-DD. I got it to work on one machine (also running xp pro) but not on the m...