Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Start powershell script on Schedule Windows Server 2012

$
0
0

Hello respected powershell scripters.

I stucked with a problem.

I have a script which prints pdf files from a directory with Adobe Reader.

When I start it from the command file with sintax

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -noprofile -noninteractive -File "C:\scripts\ftp_printing_adobe_test.ps1"

It works.
When I add this command file to execute by Schedule, printing don't happen.

I tryed to set any combination of switches in command line after poweshell.exe it didn't work by schedule.

 

Also I tryed to start powershell.exe as ap programm in schedule with parameters --File "C:\scripts\ftp_printing_adobe_test.ps1". With a working directory C:\scripts\. Nothing went out from printer,

 

Can you help me to solve the issue?

 

PS Example of printing files from directory is http://powershell.com/cs/blogs/tips/archive/2011/11/29/print-all-pdf-files-in-folders.aspx


Viewing all articles
Browse latest Browse all 6937

Trending Articles