Deployment of the Medulla agent via GPO – the task does not run
Applies to: Medulla – Agent
Version: All
Environment: On-Premise / Private SaaS / Shared SaaS
Category: Medulla Agent
Context
The GPO is successfully applied to the workstation:
gpresult /r /scope:computerconfirms that the GPO is applied;- the Group Policy Results Wizard (RSoP) confirms that the GPO is visible to the workstation.
However, the scheduled task is never created on the workstation, and nothing appears in the Event Viewer.
Key takeaway: The problem is therefore not that “the GPO isn’t being applied,” but rather that the “Immediate Task” preference item silently fails to be created. This is a common issue, typically caused by one of the four reasons listed below.
Why the GPO isn’t running
1. Incorrect type of immediate task (cause #1)
In Preferences → Control Panel Settings → Scheduled Tasks, right-clicking → New offers two options:
- Immediate Task (Windows XP)
- Immediate Task (At least Windows 7)
If the Windows XP version was selected, on a Windows 10/11 workstation the task is pushed but never triggers—and nothing appears in the log.
2. Incorrectly specified SYSTEM account
The object picker often only offers “BUILTIN\System Managed Accounts Group,” which is not the correct account. Do not use the object picker: manually enter NT AUTHORITY\System in the Account field.
Consequence: If the account does not resolve to SYSTEM, the client-side extension (CSE) cannot create the task. The failure occurs silently: the error is logged in the GPP (Group Policy Preferences) trace, not in the Application/System log—hence the “nothing in Event Viewer.”
3. The network share is not readable by the computer account
When the task runs as SYSTEM, the workstation accesses the share as the computer account (DOMAIN\PC-NAME$), not as a user.
If the share grants read access to users only, the Domain Computers group has no access → the installer is unreachable and the installation fails.
Fix: Grant Read access to the Domain Computers group for both share permissions AND NTFS permissions.
4. Blocked by EDR
Even with a valid task, the EDR may block the execution of the installer (SYSTEM process, file drops, silent installation). This does not prevent the task from being created, but it prevents the installation from completing. You must configure Medulla agent exclusions on the EDR side (see the last section).
The reliable solution
Running the agent executable directly with its silent switch (rather than using PowerShell + ExecutionPolicy) removes a layer of complexity. Here’s what works:
- Copy the installer to a network share and grant Read access to the Domain Computers group on the share AND in NTFS (both).
- New GPO → Computer Configuration → Preferences → Control Panel Settings → Scheduled Tasks.
- Right-click → New → Immediate Task (At least Windows 7) — this is essential; do not use the XP version.
- General tab: Account =
NT AUTHORITY\System(entered manually); check “Run with highest privileges” and “Run whether user is logged on or not”. - Actions tab: Start a program →
Program:
\\Serveur\Partage\Medulla-Agent-windows-FULL-latest.exe
Arguments:/SNote: The
/Ssilent switch must be verified based on the actual installer used. -
Link the GPO to the OU containing the workstations, then on a test workstation:
gpupdate /forceA reboot eliminates any timing uncertainties (the immediate task runs at policy refresh).
- Declare the EDR exclusions for the Medulla agent (paexec, folders
C:\Program Files\Medulla\,C:\ProgramData\Medulla\, temporary copyC:\Windows\PAExec-*.exe).
More robust alternative: startup script
If the immediate task continues to cause problems, use a startup script:
Computer Configuration → Policies → Windows Settings → Scripts → Startup
It runs natively as SYSTEM when the workstation starts up, avoiding the XP/7 task type pitfall, and is often more reliable for software deployment.
Verification on the test workstation
Verify that the task exists:
schtasks /query /fo LIST /v | findstr /i medulla
Verify that the computer account has access to the share (using PsExec in SYSTEM context):
PsExec -s cmd dir \\Serveur\Partage\Medulla\
Summary of causes and fixes
|
Cause |
Symptom |
Fix |
|
XP task type |
Task never triggered; nothing in the log |
Use “Immediate Task (At least Windows 7)” |
|
SYSTEM account not resolved correctly |
Task not created, silent failure (GPP trace) |
Enter |
|
Share inaccessible to the computer account |
Installer unreachable, installation fails |
Read access for Domain Computers (share + NTFS) |
|
Blocked by EDR |
Task created but installation blocked |
Declare Medulla agent exclusions |
Most likely cause: When the task isn’t even created, start with causes 1 (task type) and 2 (SYSTEM account).