Configuring Scripts with GPOs
📝Note: Installation might take around 45-50 minutes once the target device reboots
Open Server Manager, click Tools, and then click Group Policy Management.
In Group Policy Management, right-click your domain, click Create a GPO in this domain, and link it here.
In the New GPO dialog box, enter the name and click OK.
Right-click the created GPO, and then click Edit.
In the Group Policy Management Editor window, under Computer Configuration, expand Policies, expand Windows Settings, and then click Scripts (Startup/Shutdown). Select Startup and click Properties.
In Startup Properties, Click Add and then click Browse.
Browse and Select the script file & Click Open.
After Adding the Script, Click Apply then OK.
Configure the Scope of our policy, by Adding Domain Computers (if domain computers are the targeted devices to which installation should happen)
Update the Permission of the targeted group (in the below case, it’s Domain Computers) from Read to Edit Settings.
Script File (save as .bat file)
📝 Note: Installation might take around 45-50 minutes once the target device reboots
Example:
"\\SUPERDC1\SoftwareInstallations\PROD\superopsAgent.msi" | Path of Shared Folder with MSI |
FZTO7UMH7RI8_8JZP1LB3TXXC_windows_x64.msi | Name of the MSI agent from site [Note: Don’t use the same name as given in example] |
/L*V C:\\msilog_superops.log | [Optional] Only for troubleshooting purpose |