Stop and disable Print Spooler service
Log In or Register to download the BES file, and more.

0 Votes

Versioning - This is the latest version.

1Stop and disable Print Spooler service3/10/2022 2:09:58 PM
2Stop and disable Print Spooler service3/10/2022 2:12:40 PM

Description

This fixlet will handle a few cases:

1. If print spooler service is running and not set to disabled, it will stop it first then set service to disabled

2. If print spooler is not running but service is not set to disabled, it will simply set service to disabled


Property Details

ID26914
StatusQA - Ready for Production Level Testing
TitleStop and disable Print Spooler service
SourceBigfix AVP- Jeff Schafer
Source Release Date3/10/2022 12:00:00 AM
Keywordsstop service, disable service, Print Spooler
Added by on 3/10/2022 2:12:40 PM
Last Modified by on 3/10/2022 2:15:13 PM
Counters 359 Views / 0 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 1 fixlet   * Results in a true/false
Show indented relevance
(exists service "spooler" and not exists start types whose(it = "disabled") of services "spooler") and (name of operating system as lowercase contains "win")

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
if {exists running service whose (service name of it as lowercase = "spooler")}
delete __appendfile
delete netquiet.bat
appendfile @ECHO OFF
appendfile start "" /min /b net %1 %2 /y > NUL 2> NUL
move __appendfile netquiet.bat
waithidden "{pathname of client folder of site "BESSupport" & "\RunQuiet.exe"}" netquiet.bat stop "spooler"
delete netquiet.bat
waithidden cmd /C sc config spooler start= disabled
else if {exists not running service "spooler" and not exists start type whose(it = "disabled") of service "spooler"}
waithidden cmd /C sc config spooler start= disabled
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!