none
I created GPO to shutdown, how I cancel it

    Question

  • By using GPO, I created a scheduled task to shutdown computers daily at 9 PM under Computer Config/Preferences/Control

    Panel Settings/Scheduled Tasks.

    Then, I cancelled this GPO by dis-link it to OU and then delete it, but the computers still shutdown at this time, how I can cancel this task from these computers?

    Thanks

    Monday, February 22, 2016 5:18 AM

Answers

  • Hi,

    the special thing with GPPs (Group Policy Preferences) is, that they create permanent changes. When you unlink a normal GPO the original Settings will be restored (in most cases). GPPs set permanent Settings which will exists also after unlinking...

    So if you want to delete the Task, create a GPP in a new GPO and set the type for the task to "delete".

    Regards

    Eric


    Microsoft MVP Cloud and Datacenter Management
    Microsoft Partner Technical Solutions Professional (P-TSP)
    --
    www.ericberg.de
    @ericberg_de
    --
    MCSE: Enterprise Devices and Apps | MCSE: Private Cloud | MCSE: Server Infrastructure | MCSE: Desktop Infrastructure

    • Marked as answer by Ali.khamis Monday, February 22, 2016 10:12 AM
    Monday, February 22, 2016 7:00 AM
  • > Thank you Eric for your reply. I did your steps. However, how do I
    > specify "shutdown" command in a new GPO (to delete this command).
     
    Hm... If you were able to "create" a scheduled task, you should be able
    to repeat the steps you took. And finally, simply use the "action"
    dropdown and select "delete" instead of "update".
     
    • Marked as answer by Ali.khamis Monday, February 22, 2016 10:12 AM
    Monday, February 22, 2016 9:00 AM
  • > I did all of these steps, when I select delete, all other fields are
    > invisible expect the task name..
     
    As expected - deleting a task requires nothing but the task name :)
     
    > Does that mean this task will delete all other tasks?
     
    It will delete the task with the name you specified.
     
    • Marked as answer by Ali.khamis Tuesday, February 23, 2016 12:37 PM
    Monday, February 22, 2016 10:12 AM
  • Hi Ali,

    the Name of your new Task (in GPO) has to be the same like the one, that already exists on the Clients.

    Task shutting your Clients down: AutoShutdown

    Task you want to delete: AutoShutdown

    ok?!

    The GPP you will set is that you will delete a Task with the given Name if it exists...

    Regards

    Eric


    Microsoft MVP Cloud and Datacenter Management
    Microsoft Partner Technical Solutions Professional (P-TSP)
    --
    www.ericberg.de
    @ericberg_de
    --
    MCSE: Enterprise Devices and Apps | MCSE: Private Cloud | MCSE: Server Infrastructure | MCSE: Desktop Infrastructure

    • Marked as answer by Ali.khamis Tuesday, February 23, 2016 12:37 PM
    Monday, February 22, 2016 9:58 PM

All replies

  • Hi,

    the special thing with GPPs (Group Policy Preferences) is, that they create permanent changes. When you unlink a normal GPO the original Settings will be restored (in most cases). GPPs set permanent Settings which will exists also after unlinking...

    So if you want to delete the Task, create a GPP in a new GPO and set the type for the task to "delete".

    Regards

    Eric


    Microsoft MVP Cloud and Datacenter Management
    Microsoft Partner Technical Solutions Professional (P-TSP)
    --
    www.ericberg.de
    @ericberg_de
    --
    MCSE: Enterprise Devices and Apps | MCSE: Private Cloud | MCSE: Server Infrastructure | MCSE: Desktop Infrastructure

    • Marked as answer by Ali.khamis Monday, February 22, 2016 10:12 AM
    Monday, February 22, 2016 7:00 AM
  • Hi,

    Thank you Eric for your reply. I did your steps. However, how do I specify "shutdown" command in a new GPO (to delete this command).

    Regards,

    Ali

    Monday, February 22, 2016 7:58 AM
  • > Thank you Eric for your reply. I did your steps. However, how do I
    > specify "shutdown" command in a new GPO (to delete this command).
     
    Hm... If you were able to "create" a scheduled task, you should be able
    to repeat the steps you took. And finally, simply use the "action"
    dropdown and select "delete" instead of "update".
     
    • Marked as answer by Ali.khamis Monday, February 22, 2016 10:12 AM
    Monday, February 22, 2016 9:00 AM
  • Hi Martin,

    I did all of these steps, when I select delete, all other fields are invisible expect the task name..

    Does that mean this task will delete all other tasks?

    Regards,

    Ali

    Monday, February 22, 2016 9:06 AM
  • > I did all of these steps, when I select delete, all other fields are
    > invisible expect the task name..
     
    As expected - deleting a task requires nothing but the task name :)
     
    > Does that mean this task will delete all other tasks?
     
    It will delete the task with the name you specified.
     
    • Marked as answer by Ali.khamis Tuesday, February 23, 2016 12:37 PM
    Monday, February 22, 2016 10:12 AM
  • Hi Martin,

    Thank you for your reply.

    I created a new task (and select delete), named: delete_Autoshutdown.

    I run gpresult /h result.html to check the policies.. I found only the new task with delete action. However, the computers sill shutdown at the same time of the previous task.

    Regards,

    Ali
    Monday, February 22, 2016 9:03 PM
  • Hi Ali,

    the Name of your new Task (in GPO) has to be the same like the one, that already exists on the Clients.

    Task shutting your Clients down: AutoShutdown

    Task you want to delete: AutoShutdown

    ok?!

    The GPP you will set is that you will delete a Task with the given Name if it exists...

    Regards

    Eric


    Microsoft MVP Cloud and Datacenter Management
    Microsoft Partner Technical Solutions Professional (P-TSP)
    --
    www.ericberg.de
    @ericberg_de
    --
    MCSE: Enterprise Devices and Apps | MCSE: Private Cloud | MCSE: Server Infrastructure | MCSE: Desktop Infrastructure

    • Marked as answer by Ali.khamis Tuesday, February 23, 2016 12:37 PM
    Monday, February 22, 2016 9:58 PM
  • > I created a new task (and select delete), named: delete_Autoshutdown.
     
    And what was the name of the task you REALLY want to delete??? Dude...
     
    Tuesday, February 23, 2016 4:47 PM
  • Hi Martin,

    Thank you for your reply.. I did all steps in Eric's reply.

    The first task is "Autoshutdown"

    So, I created a new task "Autoshudown" and select delete..


    • Edited by Ali.khamis Sunday, February 28, 2016 5:47 AM
    Sunday, February 28, 2016 5:46 AM