Windows 10 Task Schedule and Group Policy via Command Line or PS?

~OSD~ 2,201 Reputation points
2020-12-18T23:18:55.873+00:00

Hi,

  1. A task schedule is exported in xml format. Is it possible to import this task schedule via CMD /or PowerShell to other computers.
  2. Similarly, is it supported to apply a group policy via command prompt CMD or PS?
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 123.6K Reputation points MVP Volunteer Moderator
    2020-12-18T23:56:19.343+00:00

    Register-ScheduledTask should help with #1:
    https://learn.microsoft.com/en-us/powershell/module/scheduledtasks/register-scheduledtask?view=win10-ps

    For #2 it is Import-GPO :
    https://learn.microsoft.com/en-us/powershell/module/grouppolicy/import-gpo?view=win10-ps

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    3 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ~OSD~ 2,201 Reputation points
    2020-12-19T19:59:18.32+00:00

    Hi and thanks for reply, will check that out,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.