Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed msysgit for windows 8. I am attempting to automate a git pull every 5 minutes. I am using scheduled tasks to run a script I wrote. The schedule task's action is:

powershell -ExecutionPolicy Bypass File C:\Path\To\Git\Script.ps1

The script file mentioned above contains:

cd C:/Path/To/Git/Repository
git pull

When I run this script as a local user, it works successfully. However when I switch it to run as system, it appears to run successfully but it does not. The scheduled task runs successfully but the repository does not pull in new code.

Does anyone have any suggestions for running this task silently and successfully in the background?

share|improve this question
Why do you want to give SYSTEM privileges to third-party software that certainly doesn't need them? – grawity May 6 '13 at 21:25
Try it running as you, but check the "Hidden" checkbox. – Mark Allen May 6 '13 at 22:39
@grawity not ideal but ssh key tied to that computer only has read access to the git repo – bacord May 7 '13 at 1:05
@MarkAllen It works if I run it as the local user, but the "hidden" checkbox does not hide the window. The hidden checkbox doesn't seem to change it at all. – bacord May 7 '13 at 1:08
Weird. Well, make a new user account, configure it to run as that user, even when not logged on (which should be an option.). Then log off and back on as yourself. – Mark Allen May 7 '13 at 4:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.