Question : Logon Scripts run as Administrator


Hi Experts,

I want to run the following batch as administrator in the clients managed by AD. Is this possible?

REM ===============================
@SET LANG=ENU
@SET FILE_SERVER=SECURITY1
@ECHO OFF
REM *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
REM
REM  VPLOGIN.BAT
REM  Description: Client login script file for Windows NT Servers running
REM               Symantec AntiVirus Corporate Edition
REM
REM *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

REM *=*= OS Specific *=*=
if "%OS%" == "Windows_NT" goto WINNT_NBPSHPOP

REM *=*= Win9x *=*=
if not exist %0\..\NBPSHPOP.exe goto End
if "%FILE_SERVER%" == "" goto End
%0\..\NBPSHPOP +T: \\%FILE_SERVER%\vplogon

if exist T:\VP_LOG32.exe         copy T:\VP_LOG32.exe %Temp%
if exist %Temp%\VP_Log32.exe     %Temp%\VP_Log32 /p=T:
if exist %0\..\NBPSHPOP.exe      %0\..\NBPSHPOP -T:
goto END

REM *=*= WinNT and beyond *=*=
:WINNT_NBPSHPOP
NBPSHPOP +T: \\%FILE_SERVER%\vplogon
T:\VP_Log32 /p=T:
NBPSHPOP -T:
GOTO END

REM =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
:END

REM ===============================

ThankQ

Answer : Logon Scripts run as Administrator

If you deploy that script using group policy (->startup script), it will run using system rights.
Random Solutions  
 
programming4us programming4us