Scenario: With some of the latest exploits, stop that print spooler on your servers if its unneeded
Solution: PowerShell Scriptlets
If you are on the server, run the following:
Set-service Spooler -startuptype disabled
stop-service Spooler
get-service spooler
OR
If you want to remotely run the commands, like the big bad admin that you are, run the following:
$s = "ExServer1","ExServer2"
$s | %{
$n = $_
"Disabling Spooler on $_"
Invoke-Command -ComputerName $n -ScriptBlock { Set-service Spooler -startuptype disabled }
Invoke-Command -ComputerName $n -ScriptBlock { stop-service Spooler}
}