Two ways to deploy
This guide installs software on domain computers with a GPO, two ways. Both use the Action1 agent MSI as the example, and both end with the software installed on every computer you choose.
| The simple way | The sysadmin way | |
|---|---|---|
| Who it’s for | Someone new to IT or to Group Policy | Admins who deploy software regularly |
| Tools | Clicks only (Windows GUI) | PowerShell, plus the GUI where it’s clearer |
| Installs | MSI files | MSI, EXE, anything you can script |
| Logging | Event Viewer | Its own log file on every computer |
| Updates | Add the new MSI by hand | Versioned folders, upgrade and rollback built in |
New to this? Do The simple way first. Everything in it carries over to the sysadmin way.
How it fits together
At startup, a domain computer reads its GPO and script from SYSVOL, then pulls the installer from the deployment share, all as its own computer account. Admins write to both places; computers only read.

Where each kind of file belongs:
| File | Where it goes | Why |
|---|---|---|
| Installers (MSI, EXE) | Deployment share, one folder per version | Keeps large files out of SYSVOL, which copies itself to every DC |
| Installer with an enrollment key (e.g. Action1) | Deployment share only, readable by computers only | SYSVOL and NETLOGON are readable by every domain user |
| Script used by one GPO | That GPO’s own folder in SYSVOL | Replicates and backs up with the GPO; only GPO editors can change it |
| Script shared by several GPOs | \\corp.local\Files\Deploy\Scripts | One copy to maintain |
| User logon scripts | NETLOGON | The traditional location; users need read access |
| Install logs | C:\ProgramData\CorpIT\Logs on each machine | A central log share would need computers to have write access |
Anything loose on the DC’s C:\ | Nowhere | Loose permissions, fills the OS disk, path can’t move later |
Before you start
You need a domain admin account (or delegated rights to create and link GPOs and create shares), the Group Policy Management Console, and the ActiveDirectory, GroupPolicy and SmbShare PowerShell modules. All of these ship with the DC; on an admin workstation, install RSAT.
Run every PowerShell block in this guide from an elevated PowerShell session.
Do the downloading on an admin workstation, not the DC. A DC should never browse the web. Download there, verify the file (Part 2), then copy it to the share.
Give the DC a second disk if you can. On a VM, add a small virtual disk and format it as D:. If you truly only have C:, use C:\Deploy and follow the permission steps exactly. Removing inherited permissions is what makes it safe.
The guide uses these example names. Replace them with yours everywhere:
| Example | What it stands for |
|---|---|
corp.local / CORP | Your AD domain (DNS name / NetBIOS name) |
DC01 | The domain controller hosting the share |
D:\Deploy | The folder on the DC that holds deployment files |
Deploy$ | The hidden SMB share for that folder |
\\corp.local\Files\Deploy | The DFS namespace path clients use (optional, Part 1) |
Deploy-Admins | Security group allowed to change deployment files |
GPO-Action1-Install | Security group of computers that get the install |
OU=Workstations,DC=corp,DC=local | The OU holding the target computers |
PC-PILOT01 | One test computer for the pilot |
| Action1 agent MSI | The worked example. Any MSI or EXE works the same way. |
The simple way (GUI only)
You put the installer in a shared folder, make a group of computers, and create one GPO that tells those computers “install this when you start up.” No scripting. Do everything on the DC except Step 2.
Words you’ll see
| Word | What it means |
|---|---|
| GPO (Group Policy Object) | A bundle of settings computers pick up from the domain controller. Ours says “install this program.” |
| OU (Organizational Unit) | A folder in Active Directory that holds computers or users. You attach (“link”) a GPO to an OU. |
| MSI | A Windows installer file that can install with nobody clicking Next. |
| UNC path | A network address for a file, like \\DC01\Deploy$\Action1\5.0\action1_agent.msi. Other computers can use it. A path like D:\Deploy\... only works on the DC itself. |
| Security filtering | The list of who a GPO applies to. You’ll narrow it to one group. |
Step 1: Make a locked-down shared folder
Why this matters: anyone who can change files in this folder can make every computer run their program. So computers may only read it, and only admins may change it. That’s also why you don’t just drop installers on C:\: new folders there let ordinary users create files.
- Open File Explorer. Go to
D:(useC:only if the DC has no other drive) and create a folder namedDeploy. - Right-click Deploy → Properties → Security tab → Advanced.
- Click Disable inheritance and choose Convert inherited permissions into explicit permissions on this object.
- In the list, select each entry for Users, Authenticated Users and CREATOR OWNER (whichever are there) and click Remove. Keep SYSTEM and Administrators.
- Click Add → Select a principal, type
Domain Computers, click Check Names, then OK. Leave the boxes at Read & execute, List folder contents and Read. Click OK. - Click OK until the Advanced window closes. The Security tab should now list only SYSTEM, Administrators and Domain Computers.
- Go to the Sharing tab → Advanced Sharing.
- Tick Share this folder. Set the share name to
Deploy$. The$hides it when people browse the network. - Click Permissions. Select Everyone → Remove. Click Add, type
Domain Computers, tick Allow: Read. Click Add again, typeAdministrators, tick Allow: Full Control. - Click OK, OK, Close.
Step 2: Put the installer in the folder
Do the download on your own computer, not the DC. Servers that run the domain should never browse the web.
- Download the installer from the vendor. For Action1: Action1 console → Endpoints → Install Agents → download the MSI.
- Check it’s genuine: right-click the file → Properties → Digital Signatures tab. The vendor’s name should be listed. Select it → Details → it should say This digital signature is OK. No tab, or a different name? Don’t use the file.
- In File Explorer’s address bar, type
\\DC01\Deploy$and press Enter. - Create a folder named
Action1, and inside it a folder named after the version (5.0) or today’s date. - Copy the MSI into that folder.
- Write down the full path, for example
\\DC01\Deploy$\Action1\5.0\action1_agent.msi. You’ll paste it in Step 5.
Never replace this file later. A new version goes in a new folder.
Step 3: Make a group for the computers that get it
- Server Manager → Tools → Active Directory Users and Computers.
- Right-click the OU where you keep groups → New → Group.
- Name:
GPO-Action1-Install. Group scope: Global. Group type: Security. Click OK. - Double-click the new group → Members tab → Add.
- Click Object Types, tick Computers, click OK.
- Type your test computer’s name (
PC-PILOT01), click Check Names, then OK twice.
Start with just one test computer. You’ll add the rest in Step 8.
Step 4: Create the GPO and choose who gets it
- Server Manager → Tools → Group Policy Management.
- Expand Forest → Domains → corp.local and find the OU that holds your computers (for example Workstations).
- Right-click that OU → Create a GPO in this domain, and Link it here. Name it
SW - Action1 Agent - Installand click OK. - Click the new GPO under the OU. On the Scope tab, under Security Filtering, select Authenticated Users → Remove → OK.
- Click Add, type
GPO-Action1-Install, Check Names, OK. - Go to the Delegation tab → Add, type
Authenticated Users, OK. Set the permission to Read and click OK.
Why the Delegation step: Windows needs every computer to be able to read a GPO, even computers it doesn’t apply to. Skip it and the GPO silently does nothing. This is the most common Group Policy mistake.
Step 5: Tell the GPO to install the MSI
- Right-click the GPO → Edit. The Group Policy Management Editor opens.
- Go to Computer Configuration → Policies → Software Settings → Software installation.
- Right-click Software installation → New → Package.
- In the File name box, paste the path from Step 2 (it starts with
\\DC01\) and click Open. Don’t browse toD:\instead. The GPO saves exactly the path you pick, and other computers can’t open a path on the DC’s own disk. - Choose Assigned and click OK. The package appears in the list.
Step 6: Make computers wait for the network
- Still in the editor, go to Computer Configuration → Policies → Administrative Templates → System → Logon.
- Double-click Always wait for the network at computer startup and logon, choose Enabled, click OK.
- Close the editor. It saves automatically.
Without this, Windows often finishes starting before it’s on the network and skips the install.
Step 7: Test on the pilot computer
- On
PC-PILOT01, click Restart. Don’t use Shut down and power on: Windows Fast Startup skips the install that way. - Sign in and check Settings → Apps → Installed apps for the program.
- Not there? Restart once more. The first restart often only picks up the new group and the GPO; the second installs.
- Still not there? Open Command Prompt as administrator and run
gpresult /r /scope computer. Under Applied Group Policy Objects you should seeSW - Action1 Agent - Install. If it’s under filtered out instead, the reason is printed beside it; look it up in Troubleshooting below. - For Action1, also check that the computer appears under Endpoints in the Action1 console.
Step 8: Roll it out
- In Active Directory Users and Computers, open the group → Members → Add a few more computers at a time.
- Each one installs the software at its next restart.
- Check the program (or the Action1 console) after each batch before adding more.
Done. When you need EXE installers, logs on every machine, or clean version updates, move to the sysadmin way below.
The sysadmin way (PowerShell, repeatable)
Same result as the simple way, built to be repeated and audited. Every step is a PowerShell command you can save and rerun. The share sits on its own disk behind a DFS path you can move later. A startup script logs what it did and is safe to run every boot. Installers live in versioned folders, and rollout happens in waves.
Part 1 is one-time setup. Parts 2 to 8 you repeat for each product you deploy.
Part 1: Build the deployment share
By the end of this part you have one folder that every domain computer can read, that only Deploy-Admins can change, and that clients reach through a path you can move later.
Step 1.1: Create the admin group
This group, not individual accounts, gets write access. Put only the people who deploy software in it.
New-ADGroup -Name 'Deploy-Admins' -GroupScope Global -GroupCategory Security `
-Path 'OU=Groups,DC=corp,DC=local' -Description 'Can change files on the Deploy share'
Add-ADGroupMember -Identity 'Deploy-Admins' -Members 'adm-wtsia'Use your named admin account (for example adm-wtsia), not your daily account. Group changes apply at the member’s next sign-in.
Step 1.2: Create the folder layout
New-Item -ItemType Directory -Force -Path 'D:\Deploy\Software', 'D:\Deploy\Scripts'The layout you are building:
D:\Deploy
├── Software
│ └── Action1
│ └── 5.0 one folder per version, never overwritten
│ ├── action1_agent.msi
│ └── SHA256.txt
└── Scripts only scripts shared by several GPOs
Scripts that belong to one GPO do not go here. They go in that GPO’s own SYSVOL folder (Part 5).
Step 1.3: Lock down the NTFS permissions
This is the step that makes the share safe. You remove everything the folder inherited from the drive, then grant exactly four entries.
# Stop inheriting from D:\ and drop the inherited entries
icacls 'D:\Deploy' /inheritance:r
# Grant exactly what is needed; (OI)(CI) makes it apply to all subfolders and files
icacls 'D:\Deploy' /grant:r `
'NT AUTHORITY\SYSTEM:(OI)(CI)F' `
'BUILTIN\Administrators:(OI)(CI)F' `
'CORP\Deploy-Admins:(OI)(CI)M' `
'CORP\Domain Computers:(OI)(CI)RX'
# Check the result
icacls 'D:\Deploy'What each entry does:
| Who | Right | Why |
|---|---|---|
| SYSTEM | Full control | The DC’s own services |
| Administrators | Full control | On a DC this includes Domain Admins |
| Deploy-Admins | Modify | Add new versions and scripts |
| Domain Computers | Read & execute | Startup scripts and Software Installation run as SYSTEM and reach the network as the computer account, so this is the only read access they need |
Notice that users get no access at all. That keeps installers that contain an enrollment key, like the Action1 MSI, away from anyone signing in to a workstation. If you later deploy something that installs in the user’s context (a logon script), add CORP\Domain Users:(OI)(CI)RX to that one subfolder only.
The output of the check should list those four entries and nothing else. If you see Users, Authenticated Users or Everyone with any right, rerun the first command.
Step 1.4: Share the folder
New-SmbShare -Name 'Deploy$' -Path 'D:\Deploy' `
-FullAccess 'BUILTIN\Administrators' `
-ChangeAccess 'CORP\Deploy-Admins' `
-ReadAccess 'CORP\Domain Computers' `
-FolderEnumerationMode AccessBased- The
$hides the share from casual browsing. It is not a security control on its own; the permissions are. - Share permissions and NTFS permissions both apply. A user gets whichever is stricter, so both layers must allow read for computers.
AccessBasedenumeration hides folders a person can’t open.
Step 1.5 (recommended): Put a DFS namespace in front of it
A namespace gives clients a domain-based path (\\corp.local\Files\Deploy) instead of a server name (\\DC01\Deploy$). When you later move the files to a member file server, you change one target and no GPO breaks.
Install-WindowsFeature FS-DFS-Namespace, RSAT-DFS-Mgmt-Con
# The namespace root needs its own small share
New-Item -ItemType Directory -Force -Path 'C:\DFSRoots\Files'
New-SmbShare -Name 'Files' -Path 'C:\DFSRoots\Files' -ReadAccess 'Everyone'
New-DfsnRoot -Path '\\corp.local\Files' -TargetPath '\\DC01\Files' -Type DomainV2
New-DfsnFolder -Path '\\corp.local\Files\Deploy' -TargetPath '\\DC01\Deploy$'The root share only holds links, so Everyone: Read on it is normal. Access to the files is still decided by the Deploy$ share and folder permissions.
Skipping DFS is fine for a one-DC office. Then use \\DC01\Deploy$ wherever this guide says \\corp.local\Files\Deploy.
Step 1.6: Test it the way a computer sees it
Testing as yourself proves nothing, because you are an admin. Test as SYSTEM on a client, using Sysinternals PsExec:
# On PC-PILOT01, elevated:
psexec -s -i powershell.exe
# In the new window (running as SYSTEM):
whoami # nt authority\system
Get-ChildItem '\\corp.local\Files\Deploy\Software'
New-Item '\\corp.local\Files\Deploy\test.txt' # must FAIL with access deniedReading works and writing fails: the share is ready.
Part 2: Stage an installer
Every installer goes into its own version folder, checked before it lands. Once a GPO points at it, never change it.
Step 2.1: Download and verify on your admin workstation
Get the installer from the vendor’s own portal. For Action1: console → Endpoints → Install Agents, download the MSI. Then check it is genuine and unaltered:
$file = "$env:USERPROFILE\Downloads\action1_agent.msi"
# 1. Is it signed by the vendor, and is the signature valid?
Get-AuthenticodeSignature $file | Format-List Status, SignerCertificate
# Status must be 'Valid' and the signer's subject must name the vendor.
# 2. Record its fingerprint
Get-FileHash $file -Algorithm SHA256If the status is anything other than Valid, stop and download again.
Step 2.2: Copy it into a new version folder
$dest = '\\corp.local\Files\Deploy\Software\Action1\5.0'
New-Item -ItemType Directory -Force -Path $dest
Copy-Item $file $dest
(Get-FileHash "$dest\action1_agent.msi" -Algorithm SHA256).Hash |
Set-Content "$dest\SHA256.txt"Name the folder after the product version. If the vendor doesn’t show one, use the download date (2026-12-02).
Why you never overwrite a staged file
- Windows Installer remembers the exact file each machine installed from. Repairs and uninstalls go back to that file. Swap it, and they fail or behave unpredictably.
- Software Installation doesn’t notice a replaced MSI, so machines that already have the old version never get the new one anyway.
- Separate folders let you roll back instantly by pointing the GPO at the previous version.
Updating is covered in Part 8.
EXE installers
Many vendors ship an .exe rather than an .msi. Software Installation (Part 5, method A) only accepts MSI files, so EXEs always use the startup script method (B). Find the vendor’s silent-install switch first (often /S, /quiet or /silent) and test it by hand before scripting it.
Part 3: Write an install script that’s safe to run every boot
A startup script runs at every boot, so it must do nothing when the software is already there. It also needs to log what it did, because nobody sees the screen when it runs. You only need this part for method B in Part 5. Method A (Software Installation) needs no script.
The script below follows the three rules every deployment script should:
- Check first. If the software is installed, log that and exit.
- Fail loudly. Unreachable share or a failed install produces a log line and a non-zero exit code.
- Log locally. Logs go to
C:\ProgramData\CorpIT\Logson the machine, never to a share that computers can write to.
Save it as Install-Action1.ps1:
<#
Install-Action1.ps1
GPO computer startup script. Runs as SYSTEM before anyone signs in.
Safe to run every boot: does nothing if the agent is already installed.
#>
$ErrorActionPreference = 'Stop'
$Msi = '\\corp.local\Files\Deploy\Software\Action1\5.0\action1_agent.msi'
$Match = 'Action1*' # DisplayName in Programs and Features
$LogDir = "$env:ProgramData\CorpIT\Logs"
$Log = Join-Path $LogDir 'Install-Action1.log'
New-Item -ItemType Directory -Force -Path $LogDir | Out-Null
function Write-Log([string]$Message) {
"$(Get-Date -Format s) $Message" | Add-Content -Path $Log
}
try {
# 1. Already installed? Look in both 64-bit and 32-bit uninstall keys.
$keys = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
$found = Get-ItemProperty -Path $keys -ErrorAction SilentlyContinue |
Where-Object { $_.DisplayName -like $Match }
if ($found) {
Write-Log "Already installed: $($found[0].DisplayName) $($found[0].DisplayVersion). Nothing to do."
exit 0
}
# 2. Can we reach the installer?
if (-not (Test-Path -LiteralPath $Msi)) {
Write-Log "ERROR: installer not reachable at $Msi"
exit 1
}
# 3. Install silently, with a verbose MSI log beside ours.
$msiLog = Join-Path $LogDir 'Action1-msi.log'
Write-Log "Installing from $Msi"
$p = Start-Process -FilePath 'msiexec.exe' -Wait -PassThru `
-ArgumentList "/i `"$Msi`" /qn /norestart /L*v `"$msiLog`""
Write-Log "msiexec finished with exit code $($p.ExitCode)"
exit $p.ExitCode
}
catch {
Write-Log "ERROR: $($_.Exception.Message)"
exit 1
}Before you deploy it, run it by hand on the pilot as SYSTEM (psexec -s -i powershell.exe, as in Step 1.6), twice. The first run should install. The second should log Already installed.
Common msiexec exit codes you will see in the log:
| Code | Meaning | What to do |
|---|---|---|
| 0 | Success | Nothing |
| 3010 | Success, reboot needed | Nothing; the next restart finishes it |
| 1618 | Another install was running (often Windows Update) | Nothing; the next boot retries |
| 1603 | Fatal error during install | Read Action1-msi.log and search for Return value 3 |
| 1619 | Package could not be opened | Path or permissions; redo Step 1.6 |
Never put a password, API key or token in a script. GPO scripts live in SYSVOL, which every domain user can read.
Part 4: Create and scope the GPO
You build one GPO per piece of software and control who gets it with a computer group. Rolling out then means adding computers to a group, not editing policy.
Step 4.1: Create the target group and add the pilot
New-ADGroup -Name 'GPO-Action1-Install' -GroupScope Global -GroupCategory Security `
-Path 'OU=Groups,DC=corp,DC=local' -Description 'Computers that receive the Action1 agent'
Add-ADGroupMember -Identity 'GPO-Action1-Install' -Members 'PC-PILOT01$'The $ after the name is how AD names computer accounts. A computer only notices its new group membership after it restarts. Until then, the GPO filters it out.
Step 4.2: Create the GPO and link it
Use a naming pattern that sorts well in GPMC, such as SW - <Product> - Install.
$gpo = New-GPO -Name 'SW - Action1 Agent - Install' -Comment 'Installs the Action1 agent. Scoped by GPO-Action1-Install.'
# It only has computer settings, so skip the user half (faster processing)
$gpo.GpoStatus = 'UserSettingsDisabled'
# Link it where the target computers live
New-GPLink -Name $gpo.DisplayName -Target 'OU=Workstations,DC=corp,DC=local'Link to the OU that holds the computers, not the domain root. A link at the root also reaches the Domain Controllers OU, which you rarely want for software. If you do want Action1 on DCs, make that a separate, deliberate step.
Step 4.3: Set security filtering
By default every authenticated user and computer can apply a new GPO. Narrow that to your group:
$name = 'SW - Action1 Agent - Install'
# Let the target group apply it
Set-GPPermission -Name $name -TargetName 'GPO-Action1-Install' -TargetType Group -PermissionLevel GpoApply
# Downgrade Authenticated Users from Apply to Read only (do NOT remove them)
Set-GPPermission -Name $name -TargetName 'Authenticated Users' -TargetType Group -PermissionLevel GpoRead -ReplaceWhy keep Authenticated Users at Read: since the 2016 update MS16-072, computers read GPOs with their own account. If you remove Authenticated Users completely (which the GPMC Security Filtering box does by default), computers can’t read the GPO and it silently never applies. Read-only lets everyone read it while only the group applies it.
Check it in GPMC: select the GPO → Scope tab → Security Filtering should list only GPO-Action1-Install. Then Delegation tab → Authenticated Users should show Read.
Step 4.4: Limit who can edit it
Anyone who can edit this GPO can run code as SYSTEM on every computer in scope. On the Delegation tab, make sure only Domain Admins (and Deploy-Admins, if they maintain it) have Edit rights.
Part 5: Deploy: two methods
Pick one method per product. Using both on the same machine leads to double installs and confusing logs.
| A: Software Installation | B: Startup script | |
|---|---|---|
| Accepts | MSI only | MSI, EXE, anything scriptable |
| Script needed | No | Yes (Part 3) |
| Logging | Event Viewer only | Your own log file + MSI log |
| Uninstalls when out of scope | Optional, built in | Only if you script it |
| Reliability on Wi-Fi and fast boot | Weaker | Better, and retries every boot |
| Best for | Simple MSIs on wired desktops | Agents, EXEs, anything needing checks |
Method A: Software Installation (MSI)
- In GPMC, right-click
SW - Action1 Agent - Install→ Edit. - Go to Computer Configuration → Policies → Software Settings → Software installation.
- Right-click Software installation → New → Package.
- In the file box, type the full UNC path:
\\corp.local\Files\Deploy\Software\Action1\5.0\action1_agent.msi. Never browse toD:\...on the DC. GPMC saves whatever path you choose, and clients can’t open a DC’s local path. This is the most common reason MSI deployment fails. - Choose Assigned and click OK. (Published only exists for user policies.)
- Right-click the new package → Properties → Deployment tab and decide on Uninstall this application when it falls out of the scope of management.
- Checked: removing a computer from the group uninstalls the software.
- Unchecked (usual for agents): it stays installed.
- Close the editor. Software Installation only runs at startup, not during a background refresh.
Method B: Startup script (MSI or EXE)
The script goes inside the GPO’s own folder in SYSVOL. It then replicates to every DC with the GPO, is included in GPO backups, and can only be changed by people who can edit that GPO.
- In GPMC, right-click the GPO → Edit.
- Go to Computer Configuration → Policies → Windows Settings → Scripts (Startup/Shutdown) and double-click Startup.
- On the Scripts tab, click Show Files. Explorer opens this GPO’s folder, which looks like:
\\corp.local\SysVol\corp.local\Policies\{GUID}\Machine\Scripts\Startup - Copy
Install-Action1.ps1into that folder and close Explorer. - Still on the Scripts tab (not the PowerShell Scripts tab), click Add and enter:
- Script Name:
powershell.exe - Script Parameters:
-NoProfile -ExecutionPolicy Bypass -File "\\corp.local\SysVol\corp.local\Policies\{GUID}\Machine\Scripts\Startup\Install-Action1.ps1"
- Script Name:
- Click OK twice.
To get the real GUID for step 5:
(Get-GPO -Name 'SW - Action1 Agent - Install').IdWhy call powershell.exe this way: -ExecutionPolicy Bypass applies to this one run only and avoids the client’s execution policy blocking a script from a network path. The PowerShell Scripts tab would follow the machine’s policy instead. For stricter environments, sign your scripts and set the execution policy to AllSigned by GPO; it’s more work but blocks tampered scripts.
The Part 3 script reads its installer from the deployment share, so the script (in SYSVOL) and the installer (on the share) stay where each belongs.
Part 6: Supporting policy settings
Without these settings, Windows often starts before the network is ready, and startup installs are silently skipped. Put them in a baseline workstation GPO (or in this GPO). All are under Computer Configuration → Policies → Administrative Templates → System.
| Setting | Path under System | Value | Why |
|---|---|---|---|
| Always wait for the network at computer startup and logon | Logon | Enabled | Turns off fast logon so startup policy actually runs. Most important one. |
| Specify startup policy processing wait time | Group Policy | Enabled, 60 seconds | Gives slow NICs and Wi-Fi time to connect |
| Configure software Installation policy processing | Group Policy | Tick “Allow processing across a slow network connection” | Method A otherwise skips links it thinks are slow (VPN, weak Wi-Fi) |
| Specify maximum wait time for Group Policy scripts | Scripts | Leave at default (600 s) unless an installer takes longer | Windows stops a startup script that runs past this |
| Run startup scripts asynchronously | Scripts | Leave Not configured | Keeps scripts finishing before sign-in |
Watch out for Fast Startup. On Windows 10 and 11, Shut down then power on is not a real boot, so startup scripts and Software Installation don’t run. When testing, always use Restart. To make it predictable everywhere, turn Fast Startup off: set the registry value HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power\HiberbootEnabled to 0 with a Group Policy Preferences registry item, or run powercfg /hibernate off on the machine. (The Require use of fast startup policy can only force it on; disabling it leaves the local setting alone.)
Part 7: Pilot test and verify
The pilot is done when one computer installs the software on its own, logs it, and does nothing on the next boot. Test on PC-PILOT01 only.
-
Restart the pilot. This picks up its new group membership (Step 4.1). If it’s already been restarted since you added it, run
gpupdate /forcefirst, then restart. -
Restart it a second time if nothing installed. Software Installation often needs two restarts: one to fetch the policy, one to act on it.
-
Confirm the GPO applied. Sign in, open an elevated prompt and run:
gpresult /r /scope computerSW - Action1 Agent - Installshould be under Applied Group Policy Objects. If it’s under filtered out, the reason is printed next to it (see Troubleshooting). -
For a full report, run
gpresult /h C:\Temp\gp.htmland open it in a browser. It shows every setting, where it came from, and any errors. -
Read the logs:
- Group Policy: Event Viewer → Applications and Services Logs → Microsoft → Windows → GroupPolicy → Operational. Startup script start and finish events show here.
- Method A: Windows Logs → Application, sources Application Management Group Policy and MsiInstaller.
- Method B:
C:\ProgramData\CorpIT\Logs\Install-Action1.log, plusAction1-msi.logbeside it.
-
Check the result. The software appears in Settings → Apps and the endpoint shows up in the Action1 console under Endpoints.
-
Restart once more. The script log should now end with
Already installed ... Nothing to do.That proves it’s safe to leave running on every boot.
If all seven checks pass, move on to rollout.
Part 8: Roll out, update and retire
Roll out in waves
Add computers to GPO-Action1-Install in batches: the pilot, then IT’s own machines, then about a quarter of the office, then everyone. Check the console after each wave before the next.
# Add every computer in the Workstations OU
Get-ADComputer -SearchBase 'OU=Workstations,DC=corp,DC=local' -Filter * |
ForEach-Object { Add-ADGroupMember -Identity 'GPO-Action1-Install' -Members $_ }New computers don’t get the software until someone adds them to the group. Once you’ve rolled out everywhere, you can switch the GPO’s security filtering back to Authenticated Users: Apply. Every computer in the linked OU, including new ones, then gets it automatically.
Back up before every change
Backup-GPO -Name 'SW - Action1 Agent - Install' -Path 'D:\GPOBackups' -Comment 'Before v5.1 update'Create D:\GPOBackups once, with the same locked-down permissions as D:\Deploy but without Domain Computers.
Update to a new version
- Stage the new installer in a new version folder (Part 2), for example
...\Action1\5.1\. - Method A: add the new package to the same GPO. In its Properties → Upgrades tab, add the old package and choose whether to uninstall it first or upgrade over it.
- Method B: edit
$Msiin the script to the new path, and change the check so it comparesDisplayVersionagainst the new version rather than just “installed”. - Pilot again, then let it run everywhere.
- Delete the old version folder only after nothing points at it any more.
Some products update themselves. The Action1 agent updates through the Action1 cloud, so for Action1 this GPO only needs to catch new or rebuilt machines; you don’t redeploy it for every agent version.
Retire a deployment
- Remove the link (GPMC → right-click the link → Delete; the GPO itself stays).
- Wait at least one restart cycle across the fleet.
- Back up the GPO, then delete it.
- Remove its version folders from the share and delete the targeting group.
Troubleshooting
Start with gpresult /r /scope computer on the affected machine. It tells you whether the GPO applied and, if not, why.
| Symptom | Likely cause | Fix |
|---|---|---|
| GPO not listed in gpresult at all | Linked to the wrong OU, or the computer is in a different OU | Get-ADComputer PC-PILOT01 and check its DistinguishedName against the link |
| Listed as filtered out: “Denied (Security)“ | Computer not in the group yet, or hasn’t restarted since being added | Check membership, then restart |
| Filtered out with no clear reason, nothing applies | Authenticated Users removed from the GPO entirely | Step 4.3: give Authenticated Users Read on the Delegation tab |
| Application log: “The installation source for this product is not available” or access denied (method A) | Package was added with a local D:\ path, or Domain Computers can’t read the share | Re-add the package by UNC path; redo Step 1.6 |
| Installs only after the second or third restart | Fast logon: Windows started before the network | Part 6: Always wait for the network |
| Nothing happens after power-on, works after Restart | Fast Startup | Part 6: turn Fast Startup off |
| Script never runs; no log file created | Script on the wrong tab, wrong path in parameters, or Fast Startup | GroupPolicy Operational log shows the exact path it tried |
| Log says “running scripts is disabled on this system” | Execution policy | Use powershell.exe with -ExecutionPolicy Bypass (Part 5, method B) |
| Script log: “installer not reachable” | Share or NTFS permissions, or wrong path in $Msi | Redo Step 1.6 as SYSTEM |
msiexec exit code 1618 | Windows Update or another installer was running | Nothing; it retries next boot |
| Works on wired PCs, never on laptops | Wi-Fi connects only after sign-in | Wired first boot, “Allow processing across a slow network connection”, or install that machine through your RMM |
| New version never reaches machines (method A) | MSI was overwritten in place | Use a new version folder and the Upgrades tab (Part 8) |
Security checklist
Go through this once after setup and again whenever you add a new deployment.
-
D:\Deployhas inheritance off and exactly four entries: SYSTEM, Administrators, Deploy-Admins (Modify), Domain Computers (Read & execute) - No
Users,Authenticated UsersorEveryonewrite access anywhere under the deployment share - Share permissions match: computers Read, Deploy-Admins Change
- Writing to the share as SYSTEM from a client fails (Step 1.6)
- Installers that carry an enrollment key (like Action1) live only on the share, never in SYSVOL or NETLOGON
- No passwords, API keys or tokens in any script
- Every installer’s signature checked and its SHA-256 recorded before staging
- Downloads done on an admin workstation, never on the DC
- Only Domain Admins and Deploy-Admins can edit deployment GPOs (Delegation tab)
- Each GPO backed up before changes
- Deploy-Admins members use named admin accounts, not daily accounts
- As the environment grows, plan to move the share from the DC to a member file server (the DFS path makes that a one-line change)