Win10-Initial-Setup-Script
Win10-Initial-Setup-Script copied to clipboard
Request: Disable/Enable Print Spooler Serivce.
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 }
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
}