How to make Task Scheduler run a .ps1 script on Windows 8.1 Pro? (When it doesn't want to.)
Posted on 2014-07-13
I replaced a Windows XP computer with a Windows 8 computer.
This computer sits in a corner and prints documents that it finds in a specific folder.
Previously the Powershell scripts were run by batch files that in turn were called by Task Scheduler. The scripts sent the documents to the default printer and then moved them to an archive folder.
On the Windows 8 computer, the scripts run when played manually, both directly and from the batch files. But it seems that Task Scheduler does nothing with .bat, .cmd or .ps1 files.
I have administrator privileges and have explored the following:-
Run as Administrator
Set-ExecutionPolicy -Scope CurrentUser
There are no quotation marks in the batch files.
This problem is also demonstrated (repeatable) with the simple task of opening Notepad on the Surface 2 Pro that I am using to write this.
My responsibility is for software so my IT abilities are limited.
What am I missing, any suggestions will be gratefully received?