Group Policy Silent Package Installation

How to run an Installation via Group Policy :

 

**********************************************************************************

@echo off

If not exist “c:\tfourw\STMonitor.exe” GOTO MakeDirectory

If exist “c:\tfourw\STMonitor.exe” GOTO RunFileInStealthMode

@echo off

cd\

@echo off

:MakeDirectory

@echo off

mkdir c:\tfourw

@echo off

icacls “c:\tfourw” /grant “Authenticated Users”:F

@echo off

:CopyFileToLocation

@echo off

Copy \\Source\tfw\STMonitor.exe c:\tfourw

@echo off

:RunFileInStealthMode

@echo off

@start c:\tfourw\stmonitor.exe -stealth -server:10.10.100.37 -port:8091

@echo off

:End
exit

***********************************************************************************************************



Leave a Reply