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
Path of Shared Folder with MSI
Name of the MSI agent from site
[Note: Don’t use the same name as given in example]
[Optional] Only for troubleshooting purpose