Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 am using PowerShell to create scheduled tasks on my local machine, the Scheduled Task runs a PowerShell script to PowerShell remote into a server and copy files.

When I run the Scheduled task using the option: - Run when user is logged on or not - the task runs and straight away deletes the task - any ideas what's going on, when I use my account when I am logged on it works as expected

share|improve this question
When using option "..." what ? Also provide the Powershell command you use to create the Scheduled Task – krisFR Mar 7 '14 at 13:26
are you copying over mapped drives ? If so, add a net use and or test-path command inside the script to fix. Or alternatively leave script as is and check the Run only when user is logged on button so that your script can find mapped drives even while you are logged off. – Knuckle-Dragger Mar 20 '14 at 17:24

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.