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