Windows Server

Windows Admin Center: How to create a scheduled task with WAC

Windows Admin Center provides a central management platform to remotely administer servers. With WAC, we can remotely configure scheduled tasks on remote servers
– On how to create a scheduled task with the in-built Windows task scheduler, see https://techdirectarchive.com/2020/03/24/how-to-create-a-scheduled-task-on-windows-server-2019/
– On how to create Windows Task Scheduler via the command prompt, see https://techdirectarchive.com/2020/03/31/how-to-create-edit-and-delete-a-scheduled-task-via-the-command-prompt-cmd/

To create a scheduled task on Windows Admin Center,
– Click on the server as shown below

This will open up the Windows Admin Center Server Tools as shown below

Under the server tools, search for the scheduled task as shown below
– Search for Scheduled tasks and click on it

This will open up the Scheduled tasks library as shown above
– Click on create
– Enter the rule name
– Enter a description
– Enter the command “This is the path to your PowerShell script”
– Enter and Arguments and “this is the path to your PowerShell executable”

Use the scroll bar to scroll below and populate the window.
– For the frequency, I will choose monthly
– For Trigger, the following date was selected
– Recur on Month(s); Since this is maintenance is going to be on a monthly basis, I will select all the months as shown below.
– Recur on: Month was selected
– Desired update day(s), I selected 18th after the 2nd Tuesday which is Microsoft Patch Tuesday.

Lastly, enter the following information below
– When running the task, use the following account, I selected the”Built-in”
– Choose a built-in account, here there are three options such as the
– LOCAL SERVICE
– NETWORK SERVICE
– SYSTEM
– Select the “System” account as shown below
– And click on submit.

Note: Yu can also use the MonthlyDOW, which will enable you to specify the date(s) that the task runs by month, week, and day of the week, for more information, see https://docs.microsoft.com/en-us/windows/win32/api/mstask/ns-mstask-monthlydow

This will prompt you with a windows as shown below to specify the administrator account that the your server will use in connected to the server. I entered domain user account and password as shown below.

This will validate your credentials and prompt a notification, as shown below that the Scheduled task is currently being created.

To create an exception for Windows Admin Center, see the following link https://techdirectarchive.com/2020/03/26/error-failed-to-create-a-scheduled-task-cannot-perform-the-operation-because-the-runspace-pool-is-not-in-the-open-state/

See how to create a scheduled task via Windows native tool below https://techdirectarchive.com/2020/03/24/how-to-create-a-scheduled-task-on-windows-server-2019/

Now the job as been created as shown below
– Click on the job
– Under the more button as shown below,
– Click on start.

As you can see below, the status of your scheduled task will change.

That is all that needs to be configured. If you have any questions, kindly commend below for help.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x