Need script to restart print spooler services!, in the Printing forum on BrianMadden.com
Brian Madden Logo
Your independent source for desktop virtualization, consumerization, and enterprise mobility management.

Need script to restart print spooler services!, in the Printing forum on BrianMadden.com

rated by 0 users
This post has 4 Replies | 0 Followers

Guest Posted: Thu, Oct 12 2006 5:01 PM
Hello All,

Does anyone have a script to stop and restart print spooler services for Windows 2000 server via Citrix Presentation Server 4.0? Please let me know that would be greatly appreciated.

Regards,
  • | Post Points: 20
Top 500 Contributor
Points 380
cmd or vbs based?
  • | Post Points: 20
Not Ranked
Points 345
D B replied on Fri, Oct 13 2006 9:01 AM
Put this in a .bat file




net stop "print spooler"
net start "print spooler"




  • | Post Points: 20
Not Ranked
Points 45
with ps4 the Citrix Print Manager service is dependent on the Spooler Service. If you are using a .cmd, might try something like this in the batch...

Net stop cpsvc
net stop spooler
net restart spooler
net restart cpsvc

Might also want to add a nap or sleep delay between the steps to give adequate time for the processes to stop. Can schedule with AT scheduler to run as you need it.

Also want to keep in mind that there seems to still be an unresolved issue when restarting the CPsvc that will drop all client autocreated printers in the 5 minutes following a restart of this service. (this is listed as a known issue with the ps4 RO2.)

  • | Post Points: 20
Top 500 Contributor
Points 845
Sounds to me like you may be using a bandaid to cover a problem. What is the issue with the spooler where it needs to be stopped and restarted on a pre-determined schedule?
Tony O'Connell
  • | Post Points: 5
Page 1 of 1 (5 items) | RSS