0
votes
0answers
67 views

Schedule Task through Windows PowerShell

Since the action "Display a message" on Task Scheduler on Win 8 is 'deprecated', thought of creating it through PowerShell, but can't get it to work, any idea where the problem is: $A = ...
1
vote
0answers
43 views

Can't create a COM object in a powershell script running as a scheduled task

I have a powershell script I'm trying to run as a scheduled task. Its purpose is to perform a nightly export from an Access database, then upload the exported flat files to an SFTP destination. The ...
3
votes
0answers
266 views

Powershell scripts works manually but not as a scheduled task

I have a powershell script that converts .doc to .pdf files. When I execute it manually, it works perfectly on my windows server 2012. When I execute it as a scheduled task, opens an instance of ...
2
votes
1answer
435 views

Task scheduler doesn't work unless I run it manually

I have a scheduled task on my Windows 2008 R2 server which is supposed to run a powershell script to download a backup of a file from another server. On this same server, I have scheduled the exact ...
5
votes
1answer
2k views

Task Scheduler - how to run powershell script with multiple parameters?

I am using powershell.exe as the Program and "-Command "& C:\Windows\logon.ps1; exit $LASTEXITCODE"; ExecutionPolicy RemoteSigned" as the Parameter, but it doesn't seems to be working. Some ...
1
vote
1answer
266 views

How to trigger the windows task scheduler event when my computer's CPU is overrun over 30 minutes?

my computer's OS is windows 7, I would like to do this: when my computer's CPU is overrun over 30 minutes, it will trigger task scheduler's event which is send a email to my email account. I don't ...
1
vote
3answers
705 views

Schedule a Powershell script in Windows 8?

How can I schedule a Powershell script to run every day at 3am in Windows 8?
1
vote
1answer
277 views

Create Shedule Task for execute Powershell script immediately using Powershell

I need create schedule task programmatically using Powershell (PS remoting). My task executes a powershell script (and other cases a script cmd) immediately. $powershellcmd = (get-command ...
1
vote
1answer
62 views

Can a Windows scheduled task update itself and how would I do it?

Can a Windows scheduled task update itself and how would I do it? I'm using Windows Server 2008. I've seen some Powershell scripts that create tasks from xml; would this be the right approach?
1
vote
1answer
425 views

Scheduling a Powershell script

I have a powershell script that I want to run as a schedule job. The script runs great when I execute it manually, but when I run the schedule task, the job fails with the message "could not start" ...
2
votes
3answers
2k views

Scheduled Tasks Properties in PowerShell?

I am not sure how to do this in PowerShell, but I dont think it is supported. For example: $tasks = schtasks /query Will store all the tasks into the variable $tasks Example output: Folder: ...
3
votes
1answer
1k views

Schedule powershell script with admin priviliges

I want to schedule a powershell script to run on my windows 7 system everyday with admin priviliges. How do I do so?