Jump to content

Whats the best way to monitor how many times someone resets their print spooler?


Recommended Posts

Posted

Hi,

 

Sicne I've been at this school (sept 2013) there has been an issue where the printers grey out and you can not print. The solution is to run a .bat file which just resets the spooler service.

 

Does anyone the best way to montior/work out how many times a PC (or user) has run the printer refresh batch file.

 

Im thinking either writing some code in the batch file which remotely records when a PC has run the file (workstations remotes onto server when batch is run_... or maybe through event logs? Can I remotely see when a file has been run? or something?

 

My last resort would be to write it up in c# so I have a bit more power... but really want to stick with the batch file for permission issues and just for the sake of keeping it simple.

Posted (edited)
Off the top of my head (though I know there are issues with using time in dos scripts) :

 

echo %time% > \\server\share\pcname.log

 

Make sure its got a >> else you will overwrite the file each time. Also need date and time

 

echo %date% %time% %COMPUTERNAME% %USERNAME% >> \\server\share\log.log

Edited by Jamo

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...