ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Creating Scheduled Task using GPO

    IT Discussion
    6
    30
    7.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      srdennis
      last edited by

      Hello everyone again. Veterinarian learning IT NOOB. I need to create a scheduled task via GPO and I have found several tutorials, but for several reasons, I cannot get them to work. They mostly seem to unfold like this

      https://deployhappiness.com/automatic-restarts-make-for-a-smooth-day/

      In this example, it shows it being created under computer

      Annotation 2020-06-09 184910.jpg

      Note the instructions say Computer Configuration/...
      Then it says to change the task's account to NT Authority\System
      And lastly it says to change to run the task where ever the user is logged on or not.

      Mine shows this last line as grayed out so I cannot change it, but after I save it and re-open it now I can change it. Weird.

      So still not sure if I am doing this correctly, but when I gpupdate /force and check the target machine, I don't see this task when I am logged in as a domain user and run task scheduler as administrator. Is there somewhere else I should look?

      dbeatoD 1 Reply Last reply Reply Quote 0
      • dbeatoD
        dbeato @srdennis
        last edited by

        @srdennis You need to set the action to Create and then set the settings as below:

        ea956fe5-7da5-4b8c-bcb5-08c684c84b56-image.png

        Under actions this is what I have
        5a6da269-8d5a-4cbc-ae8a-628e55b633b3-image.png

        1 Reply Last reply Reply Quote 1
        • S
          srdennis
          last edited by

          Thanks so much debeto. That help. If I want to see this in action on the target machine, where do I look? Could you also provide me a screen shot? Thanks again 🙂

          dbeatoD 1 Reply Last reply Reply Quote 0
          • DashrenderD
            Dashrender
            last edited by

            The account NT Authority\System is a system level account.

            I'm not sure who can or can't see scheduled tasks setup with this account as the owner.
            I've seen this problem in the past.

            I know JB was trying to get chocolately to run from ST via GPO, and couldn't.

            S T dbeatoD 3 Replies Last reply Reply Quote 0
            • S
              srdennis @Dashrender
              last edited by

              @Dashrender I think I saw that post. So there may not be a place to see the task?

              1 Reply Last reply Reply Quote 0
              • S
                srdennis
                last edited by

                Hey deabeto! Is that a user or a computer GPO?

                T dbeatoD 2 Replies Last reply Reply Quote 0
                • T
                  thecreaitvone91 @srdennis
                  last edited by

                  @srdennis said in Creating Scheduled Task using GPO:

                  Hey deabeto! Is that a user or a computer GPO?

                  You'll want to make that a Computer Policy. And the System account has rights to shutdown a computer so that should work as he has shown.

                  1 Reply Last reply Reply Quote 0
                  • T
                    thecreaitvone91 @Dashrender
                    last edited by

                    @Dashrender said in Creating Scheduled Task using GPO:

                    The account NT Authority\System is a system level account.

                    I'm not sure who can or can't see scheduled tasks setup with this account as the owner.
                    I've seen this problem in the past.

                    I know JB was trying to get chocolately to run from ST via GPO, and couldn't.

                    That's probably because the System doesn't get network access, and you can't save credentials in GPOs anymore, some options are still there for it but it won't work.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      srdennis @thecreaitvone91
                      last edited by

                      @thecreaitvone91 Great. I created it as a computer GPO and linked it, but it isn't shutting down the computer but I also don't see it in the task scheduler. What other trouble shooting should I do? Also here is what it looks like so if you see anything missing please let me know. Thank you very much.!Annotation 2020-06-10 060246.jpg Annotation 2020-06-10 060332.jpg Annotation 2020-06-10 060421.jpg Annotation 2020-06-10 060503.jpg

                      1 Reply Last reply Reply Quote 0
                      • dbeatoD
                        dbeato @srdennis
                        last edited by

                        @srdennis said in Creating Scheduled Task using GPO:

                        Thanks so much debeto. That help. If I want to see this in action on the target machine, where do I look? Could you also provide me a screen shot? Thanks again 🙂

                        YOu can see it on the task Scheduler under the Control Panel , Administrative Tools

                        1 Reply Last reply Reply Quote 0
                        • dbeatoD
                          dbeato @srdennis
                          last edited by

                          @srdennis said in Creating Scheduled Task using GPO:

                          Hey deabeto! Is that a user or a computer GPO?

                          Computer GPO

                          1 Reply Last reply Reply Quote 0
                          • dbeatoD
                            dbeato @Dashrender
                            last edited by

                            @Dashrender said in Creating Scheduled Task using GPO:

                            The account NT Authority\System is a system level account.

                            I'm not sure who can or can't see scheduled tasks setup with this account as the owner.
                            I've seen this problem in the past.

                            I know JB was trying to get chocolately to run from ST via GPO, and couldn't.

                            I have a script that runs Chocolatey on startup but yeah I can understand the Schedule Task issue.

                            1 Reply Last reply Reply Quote 0
                            • S
                              srdennis
                              last edited by

                              Thanks dbeato. I think you are lucky that it is working for you as it isn't working for me. I am not sure why and I think I have set it up just like you have.

                              ObsolesceO dbeatoD 2 Replies Last reply Reply Quote 0
                              • T
                                thecreaitvone91
                                last edited by thecreaitvone91

                                Have you checked event viewer on the client computer after running gpupdate for an error? make sure, Run in logged on users security context on the GPP (under common) isn't checked.

                                1 Reply Last reply Reply Quote 0
                                • ObsolesceO
                                  Obsolesce @srdennis
                                  last edited by

                                  @srdennis said in Creating Scheduled Task using GPO:

                                  Thanks dbeato. I think you are lucky that it is working for you as it isn't working for me. I am not sure why and I think I have set it up just like you have.

                                  Verify the GPO is applying as said here:

                                  @PhlipElder said in Need help trouble shooting GPO.:

                                  GPResult /H C:\Temp\GPResults.html
                                  

                                  That's how to find out the what/where/when for GPOs applying. Computer GPOs will only show up if the command is run via an elevated shell (CMD). The Temp directory needs to exist.

                                  1 Reply Last reply Reply Quote 0
                                  • dbeatoD
                                    dbeato @srdennis
                                    last edited by

                                    @srdennis said in Creating Scheduled Task using GPO:

                                    Thanks dbeato. I think you are lucky that it is working for you as it isn't working for me. I am not sure why and I think I have set it up just like you have.

                                    What is not working for you and can you show us your setting? There is no way to know what is failing if we don't see anything.

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      srdennis
                                      last edited by

                                      Thank you thecreaitvone91 and Obsolesce. Here is the output from the gpresult.
                                      https://drive.google.com/file/d/1f9AD_EvjBkXM4aVtyHYObS5qKKnni8qx/view?usp=sharing

                                      Do you have any walk through on checking the event viewer?

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        srdennis @dbeato
                                        last edited by

                                        @dbeato I posted pictures above. What other settings can I show you? The task isn't showing up on the target computer so this is where I am having problems. Thank you again.

                                        dbeatoD 2 Replies Last reply Reply Quote 0
                                        • dbeatoD
                                          dbeato @srdennis
                                          last edited by

                                          @srdennis said in Creating Scheduled Task using GPO:

                                          @dbeato I posted pictures above. What other settings can I show you? The task isn't showing up on the target computer so this is where I am having problems. Thank you again.

                                          Why did you use %SystemDir%? it will not find that. It should be %WinDir%.

                                          1 Reply Last reply Reply Quote 0
                                          • dbeatoD
                                            dbeato @srdennis
                                            last edited by

                                            @srdennis said in Creating Scheduled Task using GPO:

                                            @dbeato I posted pictures above. What other settings can I show you? The task isn't showing up on the target computer so this is where I am having problems. Thank you again.

                                            Also show us where you linked the GPO and what OU and the members of the OU in AD.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post