Skip to content

Instantly share code, notes, and snippets.

@Kaidja
Created July 6, 2021 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaidja/00ec410e4c6f93a877f39e2a8c7a67b8 to your computer and use it in GitHub Desktop.
Save Kaidja/00ec410e4c6f93a877f39e2a8c7a67b8 to your computer and use it in GitHub Desktop.
Configuration DSCDISABLEPRINTSPOOLER {
Import-DscResource –ModuleName 'PSDesiredStateConfiguration'
Node StandardConfiguration {
Service PrintSpooler {
Name = "Spooler"
DisplayName = "Print Spooler"
Ensure = "Present"
StartupType = "Disabled"
State = "Stopped"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment