Skip to content

Instantly share code, notes, and snippets.

@JustinGrote
Last active April 19, 2018 22:39
Show Gist options
  • Save JustinGrote/55c64e66bd92acf233b0ae7edb6c17dd to your computer and use it in GitHub Desktop.
Save JustinGrote/55c64e66bd92acf233b0ae7edb6c17dd to your computer and use it in GitHub Desktop.
Stop Powershell Desired State Configuration Forcefully
function Stop-DSCService {
stop-process (gwmi msft_providers | Where provider -like 'dsccore').hostprocessidentifier -force
remove-dscconfigurationdocument -stage pending -force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment