Last active
April 8, 2016 15:09
-
-
Save lholman/4121d852581557a863bb to your computer and use it in GitHub Desktop.
Handy DSC scripts
This file contains hidden or 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
$dscProcessID = Get-WmiObject msft_providers | Where-Object {$_.provider -like 'dsccore'} | Select-Object -ExpandProperty HostProcessIdentifier | |
Get-Process -Id $dscProcessID | Stop-Process | |
Get-WmiObject msft_providers | Select-Object -Property Provider, HostProcessIdentifier | |
#Often we see that the Provider 'WMIEventProv' is left locking files too |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment