Batch files with Admin privlege Vista
mtrox
Minnesota
Since Vista "helpfully" hides the repair function for NIC cards, I need to make a batch file to just release and renew on a particular user's laptop. Is there a good way to elevate permissions so a batch file can do this? I've wasted a half hour on this and somebody here knows the answer.
0
Comments
If it's the later, then no there's no way you can really do that with a batch file. I mean you could do a batch file with the command
runas /user:administrator@company.com "ipconfig /release"
You could then also put in the password into the batch file for them. But that's not really a good idea.
The alternative is to use a program called AutoIT and create a script that runs it with elevated privileges, then compile the script into an executable. It would do the same thing, only they wouldn't be able to disect it easily to view the password.
I'm sure AutoIT's the way, but its not worth all that for this little problem. Or.....I could just UPGRADE her to XP so all she has to do is right click the wireless, then left click repair.
Wanna hear me p--s and moan about Vista again?
Thus every time the batch file if run, it is elevated.
Got any ideas kryyst?
Are sure it's a WAP54G and not a WRT54G? Also make sure that it's got the latest firmware and perhaps try doing a factory reset. Also if you haven't connect the WAP to the router with a static IP and not through DHCP. There's really not much else to configure, they are pretty dumb.