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

~OSD~ 2,126 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 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,617 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,903 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,364 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 96,361 Reputation points MVP
    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,126 Reputation points
    2020-12-19T19:59:18.32+00:00

    Hi and thanks for reply, will check that out,

    0 comments No comments