Win10-Initial-Setup-Script icon indicating copy to clipboard operation
Win10-Initial-Setup-Script copied to clipboard

Request: Disable/Enable Print Spooler Serivce.

Open ghost opened this issue 5 years ago • 1 comments

Made self function dont know this correct way.

Disable Print Spooler

Function DisablePrintSpooler { Write-Output "Stopping and disabling Print Spooler service..." Stop-Service "Spooler" -WarningAction SilentlyContinue Set-Service "Spooler" -StartupType Disabled }

ghost avatar Jul 29 '20 05:07 ghost

Great Idea.

PS. Use triple quotes ```powershell to start code block, and end with another triplet.

Function DisablePrintSpooler {
   Write-Output "Stopping and disabling Print Spooler service..."
   Stop-Service "Spooler" -WarningAction SilentlyContinue
   Set-Service  "Spooler" -StartupType Disabled
}

E3V3A avatar Sep 30 '20 10:09 E3V3A