+ Post New Thread
Results 1 to 2 of 2
Scripts Thread, Script to stop service, remove files, restart service? in Coding and Web Development; Hello. We've been having some trouble with a printer driver and wondered if there's anyone here who could write a ...
  1. #1
    marsdenprimary's Avatar
    Join Date
    Sep 2009
    Location
    Nelson
    Posts
    482
    Thank Post
    247
    Thanked 7 Times in 7 Posts
    Rep Power
    11

    Script to stop service, remove files, restart service?

    Hello. We've been having some trouble with a printer driver and wondered if there's anyone here who could write a script that would:

    1- Stop the printer spool service
    2- Remove a set of .dll files
    3- Start the print spool service

    It must be simple to do this? It would need to be able to run at login using GPO and AD.

  2. #2

    Domino's Avatar
    Join Date
    Oct 2006
    Location
    Bromley
    Posts
    4,126
    Thank Post
    215
    Thanked 1,255 Times in 786 Posts
    Blog Entries
    4
    Rep Power
    505
    batch file?

    Code:
    net stop "Print Spooler"
    Del <files>
    net start "Print Spooler"
    Alternatively you might be able to do it from GPP, but getting the timings right might be an issue.

  3. Thanks to Domino from:

    marsdenprimary (27th January 2014)

SHARE:
+ Post New Thread

Similar Threads

  1. Script to delete NTUSER.DAT file from server
    By cneilson6 in forum Windows Server 2008 R2
    Replies: 3
    Last Post: 27th November 2012, 02:40 PM
  2. Replies: 2
    Last Post: 29th March 2012, 10:49 AM
  3. Replies: 1
    Last Post: 7th March 2012, 09:33 PM
  4. Replies: 15
    Last Post: 6th January 2012, 10:18 AM
  5. Replies: 6
    Last Post: 18th October 2011, 01:45 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •