Deleting Old Print Spool Jobs Using A Powershell Script Bartender 追蹤
We use Bartender for our sap printing purpose and we have Bartender applicaiton installed on our windows server 2008 R2 machine. This machine does lot of printing due to which loads of spool jobs will get created in C:\windows\system32\spool\Printer Folder.
I wrote one powershell script which stops the print spooler and commander service and delete these old spool files from C:\windows\system32\spool\Printer location. This worked great for few days , but now we are facing issues with printing once we execute the powershell script.
The commander service wont get started , once we execute the script . what could be the reason????
Does anyone faced this kind of issues before?
Let me know your thought.
Thanks in advance.