GPO Scheduled Task Setup
To enable Startup Metrics, the WSM Agent must run with elevated privileges. This requires configuring the agent to start as a Scheduled Task at user logon instead of launching from the Windows Startup folder.
Create the Group Policy Object (GPO)
Open Group Policy Management (
gpmc.msc).Expand your domain.
Right-click the appropriate Organisational Unit (OU) containing the target users.
Select Create a GPO in this domain, and Link it here.
Provide a name for the GPO
Right-click the newly created GPO and select Edit.

Name the GPO "WSMAgent" or any other name that aligns with your organization's security standards.

Configure the Scheduled Task
Navigate to:
Right-click in Scheduled Tasks → New → Scheduled Task (At least Windows 7).
General Tab
Configure the following:
Name: WSMAgent
Description: (optional)
Run only when user is logged on: Yes
Run with highest privileges: Yes
Configure for: Windows 10 / Windows Server 2016+

Triggers Tab
Begin the task: At log on
Enabled: Yes

Actions Tab
Action: Start a program
Program/script:

Settings Tab
Allow task to be run on demand: Yes
If the task is already running: Do not start a new instance
Stop the task if it runs longer than: 3 days
If the running task does not end when requested, force it to stop: Yes
Click OK to save the task configuration.

The original shortcut used to start the agent from the Windows Startup folder must be removed.
A minimum of one reboot is required for the Group Policy to create the Scheduled Task. The agent will then start with elevated privileges at the next user logon.
Last updated

