Created
July 6, 2021 13:26
-
-
Save Kaidja/dde91865d09bd11400e13abcca8fa28e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invoke-Command -ScriptBlock { | |
Stop-Service -Name Spooler -Force | |
Set-Service -Name Spooler -StartupType Disabled | |
} -ComputerName SERVER1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment