techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old Jan 7, 2011, 12:45 PM   #1
Akumos
200 Posts
 
Akumos's Avatar
 
Join Date: Nov 2008
Location: Birmingham, England...
Posts: 479 (0.29/day)
Thanks: 75
Thanked 27 Times in 22 Posts

System Specs

Script to restart print spooler

Hi

I'm trying to get a script to restart the print spooler on a server from a slient so I don't have to remote in and restart it manually each time. Is this possible?

I have the restart code, just need to point it to a server.

Code:
@echo off
net stop spooler
net start spooler
exit
Any ideas?

Thanks
__________________
Akumos is offline  
Reply With Quote
Old Jan 7, 2011, 04:58 PM   #2
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

sc \\computer stop "service name"
sc \\computer start "service name"

sc.exe is in the system32 and/or SysWOW64 folders.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
The Following User Says Thank You to Kreij For This Useful Post:
Old Jan 7, 2011, 06:14 PM   #3
ktr
Eligible for custom title
 
ktr's Avatar
 
Join Date: Apr 2006
Location: Bay Area, California, USA, Earth
Posts: 6,158 (2.34/day)
Thanks: 0
Thanked 708 Times in 595 Posts

System Specs

Read up on this: http://technet.microsoft.com/en-us/l...44(WS.10).aspx
ktr is offline  
Reply With Quote
The Following User Says Thank You to ktr For This Useful Post:
Old Jan 10, 2011, 07:58 AM   #4
Akumos
200 Posts
 
Akumos's Avatar
 
Join Date: Nov 2008
Location: Birmingham, England...
Posts: 479 (0.29/day)
Thanks: 75
Thanked 27 Times in 22 Posts

System Specs

Thanks both...

Kreij, your reply worked perfectly as always!! Thanks!
__________________
Akumos is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[help] print spooler problem on windows 7 wahdangun General Software 7 Nov 2, 2010 05:22 PM
Print as PDF freebird_9924 General Software 3 May 18, 2010 08:20 AM
Basic print server freaksavior Networking & Security 29 Dec 12, 2008 02:30 AM
Epson print cd stevep305 General Software 2 Oct 12, 2007 04:17 PM
Adobe Print Problems? bigboi86 General Software 0 May 20, 2006 05:59 PM


All times are GMT. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts