Hi Experts,
I need your advice!
I want to print a PDF from a SBS2008 periodical once a day.
The PDF is created by another application and saved in a local folder.
This little "printservice" has to run in background with no user activity an also with no user logged into the machine.
I wrote a batchfile and configured the taskplaner to execute it.
but that doesnt work with no user logged into the machine.
so i thought i need a custom service and created one with srvany.exe
i modified the batch to an infinite loop
but that didnt work either.
This is my batchfile:
:START
start runas /profile /savecred /user:sysadmin@domain.local "C:\Program Files (x86)\Adobe\Reader 9.0\Reader\AcroRd32.exe /p /h c:\test\Test.pdf"
@time /T>> c:\test\test.txt
timeout /T 300
Taskkill /F /IM acrord32.exe /T
goto START
I saw, that no printer is given as argument to AcroRd32 /p so i thought it only prints to the default printer. But there is no default printer, when no user is logged in. So I tried runas with no effect.
I googled a bit an read somthing about missing rights. But I dont really understand that.
Can anybody give me an advice?
Thanks in advance
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.