Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Request: Disable/Enable Print Spooler Serivce. #331

Open
ghost opened this issue Jul 29, 2020 · 1 comment
Open

Request: Disable/Enable Print Spooler Serivce. #331

ghost opened this issue Jul 29, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 29, 2020

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
}

@E3V3A
Copy link

E3V3A commented Sep 30, 2020

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
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant