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)

  1. Open Group Policy Management (gpmc.msc).

  2. Expand your domain.

  3. Right-click the appropriate Organisational Unit (OU) containing the target users.

  4. Select Create a GPO in this domain, and Link it here.

  5. Provide a name for the GPO

  6. 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 TasksNewScheduled 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.

triangle-exclamation
circle-exclamation

Last updated