Cannot run batch file as admin
I'm trying to execute a simple batch file as admin and despite running with my rights (network admin), local system, or a service account with admin rights the script runs but does not execute successfully. I have run the script manually and confirmed it requires admin rights and works correctly. I'm not really sure where to go from there.
Answers (1)
Have you checked the log? Use Run Now to run the script and under Run Now status you will then have access to a log if you click on the job you ran (once it says completed).
If the log is not helpful, maybe you can add more logging to your batch script so the log tells you where it is getting stuck (ie. output successfully completed X step).
I often find that it says it completed successfully but it can't find the script or something to this tune once I look in the log. If you see an error in here that doesn't make sense, post it and maybe I can help further?
Could be kittens jamming the batch file for all we know... Kittens you say? - rileyz 3 years ago