Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 10672

2008 R2 Scheduled Task returning 0x1

$
0
0

Hallo,

ich have already searched my way through google and those related threads in here but with no success. I have created a powershell-script which is stored on a fileserver in our head office. We have 7 branch offices, 1 server each branch office accesses the script via an UNC-Path and an administrative share. I created a scheduled task on one of those branch office servers and made a successful testrun. Then i exported the task and imported it on the other 6 machines.

now here comes the crux of the matter: the scheduled task fails on 4 of those 7 machines despite the fact that all about it is the same. Reimporting or even recreating the task manually didn't help. Running the script interactively on the Powershell CLI works, with 2 different user accounts (my admin-account and a special service user). but when I launch the task manually with my admin account the tasks fails, but not with the service user logged in.

Here some additional general information:

  • The scheduled task runs independently from User logon with a domain-based service-user which has local admin-rights on all 8 machines, my admin account is also local admin
  • all servers run 2008R2 with identical patch level on an ESX-Host.
  • The Powershell-script is called by the task as follows: Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe;Arguments: -ExecutionPolicy remotesigned -NonInteractive -command \\server\D$\Scripts\script.ps1
  • the Powershell eventlog has no errors or warnings at all, the informational entries say nothing about any problems

I hope i made my issue understandable enough. Any help is highly appreciated! :-)


Viewing all articles
Browse latest Browse all 10672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>