![]() ![]() While your script may run successfully on some computers, you might want to spot those machines on which the service could not be restarted, or on which the script could not terminate successfully for any other reason. ![]() The Citrix Print Manager Service service was started successfully.Īs you can see, it's fairly easy to run the command, but analyzing the output can be a pain. The Citrix Print Manager Service service is starting. The Citrix Print Manager Service service was stopped successfully.Ĭ:\WINDOWS\system32>del C:\WINDOWS\system32\spool\PRINTERS\*.* /f /q The Citrix Print Manager Service service is stopping. Stopping the Print Spooler service will also stop these services. ![]() The following services are dependent on the Print Spooler service. The Print Spooler service was started successfully. The Print Spooler service was stopped successfully.Ĭ:\Windows\system32>del C:\Windows\system32\spool\PRINTERS\*.* /f /q This is a sample output of the command: C:\Windows\system32>net stop spooler /y Now, assuming the commands above are saved to a batch file named 'CleanSpool.bat' which is located in C:\temp directory, enter the following command on your computer: In this scenario we’ll run the following short script, which cleans the Windows spooler directory and restarts the Print Spooler service, which helps overcome some common printing issues:ĭel %windir%\system32\spool\PRINTERS\*.* /f /q In this example, we will use a plain text file named 'CompList.txt' which looks like this: The next step would be to prepare a simple TXT file with the names of the computers on which you want to run the command, one name per line. You will need to download PSExec to your computer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |