Admin right to change from static to DHCP on logon using a script - TechRepublic
Question
March 25, 2009 at 01:30 PM
wabethi

Admin right to change from static to DHCP on logon using a script

by wabethi . Updated 17 years, 3 months ago

I am using this login script and have appended a vbs script to unmount the static address and renew ip on dhcp.

What is the correct switch to give admin permission for this vbs script to execute:
JNM
———————————-
@echo off

net use m: /delete

net use m: \\server\well /yes /user:server\user Password

net use r: \\server\corp /yes

net use p: \\server\public /yes

net use h: /home /yes

if %COMPUTERNAME% == xyz GOTO END
if %COMPUTERNAME% == xyz GOTO END
if %COMPUTERNAME% == xyz GOTO END
if %COMPUTERNAME% == xyz GOTO END
if %COMPUTERNAME% == xyz GOTO END
if %COMPUTERNAME% == xyz GOTO END
if %COMPUTERNAME% == xyz GOTO END
if %COMPUTERNAME% == xyz GOTO END

goto bydhcp

:bydhcp

START \\Server\NETLOGON\dhcp.vbs

This discussion is locked

All Comments