Re: Enable Ethernet Adapter
- From: Chris M <nobody@xxxxxxxxxxxxxxx>
- Date: Tue, 05 Apr 2005 22:18:53 +0100
Sarah Tanembaum wrote:
Hi Chris, I did come across similar issues on other project. And the solution is to put a wait long enough for the script to finish. Just like yours.
That's it! You reminded me that I had to put in a sleep command. I had forgotten about that.
My bigger problem is now to limit all this script to run in "Administrator" mode. In unix, you can use the "sudo" command whereas in Windows there are nothing like it but I hope someone will come up with one.
I think 'runas' command in Windows is just as dangerous as 'su'(superuser) for Unix. It gives the script or a particular person full access to the machines(and/or domain).
The runas command can run as any user you want, not just Administrator, and the rights only persist for running the command that follows, but
unfortunately, the /savecred option will enable the user (if they're savvy enough) to run something else as that user if they try.
It's a tricky problem. What would be useful is the ability to have different user accounts available in different hardware profiles. I'm not sure if that's possible.
-- Chris M. .
- References:
- Enable Ethernet Adapter
- From: Sarah Tanembaum
- Re: Enable Ethernet Adapter
- From: Chris M
- Re: Enable Ethernet Adapter
- From: Sarah Tanembaum
- Re: Enable Ethernet Adapter
- From: Chris M
- Re: Enable Ethernet Adapter
- From: Sarah Tanembaum
- Enable Ethernet Adapter
- Prev by Date: RE: Windows servies lose password on reboot
- Next by Date: Re: Can I do this?
- Previous by thread: Re: Enable Ethernet Adapter
- Next by thread: Admin
- Index(es):
Relevant Pages
|