Windows task scheduler - can't get PS script to get-eventlog from servers over network, only local...

Is there an Impartial Brexit Deal comparison site?

How does it work when somebody invests in my business?

Why is delta-v is the most useful quantity for planning space travel?

How can I replace every global instance of "x[2]" with "x_2"

Can criminal fraud exist without damages?

Ways to speed up user implemented RK4

Star/Wye electrical connection math symbol

Mapping a list into a phase plot

Failed to fetch jessie backports repository

The baby cries all morning

Is there any reason not to eat food that's been dropped on the surface of the moon?

What are the ramifications of creating a homebrew world without an Astral Plane?

Can I Retrieve Email Addresses from BCC?

Trouble understanding overseas colleagues

Why "be dealt cards" rather than "be dealing cards"?

Tiptoe or tiphoof? Adjusting words to better fit fantasy races

How do I keep an essay about "feeling flat" from feeling flat?

Is there a problem with hiding "forgot password" until it's needed?

Your magic is very sketchy

Opposite of a diet

Efficiently merge handle parallel feature branches in SFDX

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

Lay out the Carpet

There is only s̶i̶x̶t̶y one place he can be



Windows task scheduler - can't get PS script to get-eventlog from servers over network, only local server


Windows Server 2008 Task Scheduler Tasks Not ExecutingIs it possible for a Powershell script to return the Last Run Result from Windows 2008 task scheduler?Get username logging on from task schedulerSchtasks — what is wrong with the following commandScheduling tasks|jobs across servers from central location. (Windows Server)Windows Server 2008 Task Scheduler taskeng.exe lingeringWindows Server 2008 R2 Task Scheduler Powershell issueTask scheduler terminates completed taskTask Scheduler not responding when attempting to create a new trigger on all Windows 2008 R2 serversHow to run a Windows Task that executes a PowerShell script as the Windows Local Service account













0















In a 2008 R2 server, I have a Windows task that executes a PowerShell script that uses Get-EventLog to get Windows event logs from the local server and also from servers over the network. When running the script manually from the PowerShell command prompt, the script works fine. But when running it from the Windows task scheduler, the script only gets the logs from the local server, not from the other servers.



I was able to get it to work by unchecking the "Do not store password. The task will only have access to local resources." checkbox in the task's properties. But we want to avoid that for security reasons. We also don't want to disable the local security policy "Network Access: Do not allow the storage of passwords and credentials for network authentication" in order to get this to work...



Is there another way to get our task to successfully run our script and get the event logs of our servers over the network?









share



























    0















    In a 2008 R2 server, I have a Windows task that executes a PowerShell script that uses Get-EventLog to get Windows event logs from the local server and also from servers over the network. When running the script manually from the PowerShell command prompt, the script works fine. But when running it from the Windows task scheduler, the script only gets the logs from the local server, not from the other servers.



    I was able to get it to work by unchecking the "Do not store password. The task will only have access to local resources." checkbox in the task's properties. But we want to avoid that for security reasons. We also don't want to disable the local security policy "Network Access: Do not allow the storage of passwords and credentials for network authentication" in order to get this to work...



    Is there another way to get our task to successfully run our script and get the event logs of our servers over the network?









    share

























      0












      0








      0








      In a 2008 R2 server, I have a Windows task that executes a PowerShell script that uses Get-EventLog to get Windows event logs from the local server and also from servers over the network. When running the script manually from the PowerShell command prompt, the script works fine. But when running it from the Windows task scheduler, the script only gets the logs from the local server, not from the other servers.



      I was able to get it to work by unchecking the "Do not store password. The task will only have access to local resources." checkbox in the task's properties. But we want to avoid that for security reasons. We also don't want to disable the local security policy "Network Access: Do not allow the storage of passwords and credentials for network authentication" in order to get this to work...



      Is there another way to get our task to successfully run our script and get the event logs of our servers over the network?









      share














      In a 2008 R2 server, I have a Windows task that executes a PowerShell script that uses Get-EventLog to get Windows event logs from the local server and also from servers over the network. When running the script manually from the PowerShell command prompt, the script works fine. But when running it from the Windows task scheduler, the script only gets the logs from the local server, not from the other servers.



      I was able to get it to work by unchecking the "Do not store password. The task will only have access to local resources." checkbox in the task's properties. But we want to avoid that for security reasons. We also don't want to disable the local security policy "Network Access: Do not allow the storage of passwords and credentials for network authentication" in order to get this to work...



      Is there another way to get our task to successfully run our script and get the event logs of our servers over the network?







      windows-server-2008-r2 powershell task-scheduler





      share












      share










      share



      share










      asked 1 min ago









      7290990372909903

      61




      61






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f960161%2fwindows-task-scheduler-cant-get-ps-script-to-get-eventlog-from-servers-over-n%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f960161%2fwindows-task-scheduler-cant-get-ps-script-to-get-eventlog-from-servers-over-n%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Фонтен-ла-Гаярд Зміст Демографія | Економіка | Посилання |...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Маріан Котлеба Зміст Життєпис | Політичні погляди |...