Last active
April 19, 2018 22:39
-
-
Save JustinGrote/55c64e66bd92acf233b0ae7edb6c17dd to your computer and use it in GitHub Desktop.
Stop Powershell Desired State Configuration Forcefully
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
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