Question: I need when domain users log on, VBS logon script will be run include this command: route add /p 201.2.3.4 mask 255.255.255.255 10.10.10.10. This command need administrator or elevated user mode. How to do it from VBS script? Could you give me a sample?
Environment:
Server level Windows Server 2008 R2
Desktops: Windows 7
I know this question had been asked many many times, but my situation is a little bit special. I don't want users type in administrator account name and password. I don't want my administrator account name and password recorded in VBS script and be found by any personal who can access server and edit the VBS file.
Thank you.
Our community of experts have been thoroughly vetted for their expertise and industry experience.