Use PowerShell to configure Scheduled Task to include 'Configure For' and Description
Posted on 2015-01-19
I have created a Scheduled Task with Powershell 4.0. I am utilizing a gMSA account to run the Scheduled Task. The Scheduled Task runs fine. However, I'd like to add a description and possibly change the 'Configure for' parameter from 'Windows 7, Windows Server 2008 R2' to 'Windows Server 2012 R2'. Since I'm using a gMSA I cannot do this from the the Task Scheduler app, it must be done via powershell. After much searching the internet I haven't found a solution for either of these. The servers are vm's running 2012 R2. Is there a way of doing this either when creating the scheduled task or after the Scheduled Task has been created?