Windows 10: Group Policy Scheduled Task Preference Item Automation with Powershell

Discus and support Group Policy Scheduled Task Preference Item Automation with Powershell in Windows 10 Gaming to solve the problem; Hello all, I'm trying to automate the creation of scheduled tasks within my domain without the use of group policy management gui/mmc.exe, and I am... Discussion in 'Windows 10 Gaming' started by The Verminator, Jun 14, 2023.

  1. Group Policy Scheduled Task Preference Item Automation with Powershell


    Hello all, I'm trying to automate the creation of scheduled tasks within my domain without the use of group policy management gui/mmc.exe, and I am extremely close. I am running Windows Server 2019 Datacenter. I am manually creating a completely valid XML file at `\\$domain\sysvol\$domain\policies\$policy_guid\preferences\machine\scheduledtasks\scheduledtasks.xml`, it's within a proper GPO, and the GPO is linked to the domain, but here is the kicker; it doesn't show up within the GPO view unless I edit it. The .xml file will be created, but it won't show up within the GPO in mmc.exe unless I m

    :)
     
    The Verminator, Jun 14, 2023
    #1
  2. R.J.S Win User

    Microsoft Defender, Task Scheduler & Group Policy.

    Hello! Question: What should I Put in to this Group Policy "Specify the time of day to run a scheduled scan" to Make It Do what it says, on specific time. For Example I want to set it to 17:00 To make It to do it at that time. Because This: 120(0x78) is confusing for Me(User).

    What kind of number. 120 or 0x78 ! Because I want to automate this Policy to make it to do what it says on 5pm afternoon-evening.

    Reason: I want to automate "Full System Scans" in Microsoft Defender Antivirus, so that next time I don't have to do Any input at all.

    And IF I Create Task in Task Scheduler with Following Action: ( "%ProgramFiles%\Windows Defender\MpCmdRun.exe -Scan -ScanType 2" ), Will It Preform Full PC Scan?

    System Information:

    OS: Windows 10 Build 19045.2546 (22H2)

    Edition: ProfessionalWorkstationN (Pro N for Workstations)
     
    R.J.S, Jun 14, 2023
    #2
  3. Mark Isi Win User
    PowerShell randomly poping-up in tool bar

    Hello,

    Just to verify, do you have any scheduled tasks that uses Powershell? Scheduled tasks makes Powershell window appear periodically on your computer, therefore we suggest that you check the Task Scheduler. Here are the steps:

    • Click on Start.
    • In the search bar, type Task Scheduler and click on

      Task Scheduler
      in the results.
    • Under Active Tasks, check for any tasks that use Powershell and the scheduled time.

    If the issue still persist, we suggest that you run a Windows Defender scan to see if it will pick up any malware that the first scan missed.

    Let us know the outcome.
     
    Mark Isi, Jun 14, 2023
    #3
  4. Group Policy Scheduled Task Preference Item Automation with Powershell

    How to "translate" a CMD scheduled task into a Powershell scheduled task?

    I have a scheduled Task where an Admin Command Prompt opens up and runs SFC and DISM. Here are the actions I entered in the "Action" tab of Task Scheduler:

    Program/script: %windir%\system32\cmd.exe

    Add Arguments (optional) /k Dism.exe /online /Cleanup-Image /StartComponentCleanup&&sfc/scannow&&Dism /Online /Cleanup-Image /RestoreHealth&&sfc/scannow

    I tried to run exactly the same scheduled task now on Powershell but with no luck. What do I need to do to "translate" this from CMD into Powershell in the Task Scheduler?

    Any suggestions greatly appreciated.
     
    ✨Fancy Rat✨, Jun 14, 2023
    #4
Thema:

Group Policy Scheduled Task Preference Item Automation with Powershell

Loading...
  1. Group Policy Scheduled Task Preference Item Automation with Powershell - Similar Threads - Group Policy Scheduled

  2. Group Policy Scheduled Tasks

    in Windows 10 Gaming
    Group Policy Scheduled Tasks: I'm showing two scheduled tasks that appear to be created by GPO's however I cannot tell how they're being created and they don't show up in the task scheduler. Can anyone tell me what these are? In the registry I see them under this key:HKLM\Software\Microsoft\Window...
  3. Group Policy Scheduled Tasks

    in Windows 10 Software and Apps
    Group Policy Scheduled Tasks: I'm showing two scheduled tasks that appear to be created by GPO's however I cannot tell how they're being created and they don't show up in the task scheduler. Can anyone tell me what these are? In the registry I see them under this key:HKLM\Software\Microsoft\Window...
  4. Group Policy Scheduled Tasks

    in Windows 10 Customization
    Group Policy Scheduled Tasks: I'm showing two scheduled tasks that appear to be created by GPO's however I cannot tell how they're being created and they don't show up in the task scheduler. Can anyone tell me what these are? In the registry I see them under this key:HKLM\Software\Microsoft\Window...
  5. Group Policy Scheduled Task Preference Item Automation with Powershell

    in Windows 10 Software and Apps
    Group Policy Scheduled Task Preference Item Automation with Powershell: Hello all, I'm trying to automate the creation of scheduled tasks within my domain without the use of group policy management gui/mmc.exe, and I am extremely close. I am running Windows Server 2019 Datacenter. I am manually creating a completely valid XML file at...
  6. Microsoft Defender, Task Scheduler & Group Policy.

    in Windows 10 Gaming
    Microsoft Defender, Task Scheduler & Group Policy.: Hello! Question: What should I Put in to this Group Policy "Specify the time of day to run a scheduled scan" to Make It Do what it says, on specific time. For Example I want to set it to 17:00 To make It to do it at that time. Because This: 1200x78 is confusing for...
  7. Microsoft Defender, Task Scheduler & Group Policy.

    in Windows 10 Software and Apps
    Microsoft Defender, Task Scheduler & Group Policy.: Hello! Question: What should I Put in to this Group Policy "Specify the time of day to run a scheduled scan" to Make It Do what it says, on specific time. For Example I want to set it to 17:00 To make It to do it at that time. Because This: 1200x78 is confusing for...
  8. Microsoft Defender, Task Scheduler & Group Policy.

    in Windows 10 Customization
    Microsoft Defender, Task Scheduler & Group Policy.: Hello! Question: What should I Put in to this Group Policy "Specify the time of day to run a scheduled scan" to Make It Do what it says, on specific time. For Example I want to set it to 17:00 To make It to do it at that time. Because This: 1200x78 is confusing for...
  9. Group Policy for Powershell Execution

    in Windows 10 Customization
    Group Policy for Powershell Execution: I enabled "Turn on Script Execution" and only allow signed scripts previously.However, I would like to bypass policy for one specific powershell script without changing my group policy.Is there any way of doing so?I have tried to using the -executionpolicy bypass -file but it...
  10. Group Policy for printer preferences

    in Windows 10 Drivers and Hardware
    Group Policy for printer preferences: Hi. I'm not sure if this is the right place for this so please move it if not. The tech side of my work have sent nearly 100 laptops out on site, all running Windows 10. Admin account for us and a Kiosk account for the end users. Occasionally when the printers on site get...