Created
November 3, 2015 19:37
-
-
Save Dan1el42/88d1c54ab7511f987994 to your computer and use it in GitHub Desktop.
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
| $MpioRegisteredDSM = Get-CimInstance -Namespace ROOT/WMI -Class MPIO_REGISTERED_DSM | |
| $MpioRegisteredDSM.DsmParameters | Where-Object DsmName -eq 'Microsoft DSM' | | |
| ForEach-Object { | |
| $PSItem.DsmCounters.PathVerifyEnabled = 1 | |
| Get-CimInstance -Namespace ROOT/WMI -ClassName MPIO_WMI_METHODS | | |
| Invoke-CimMethod -MethodName SetDSMCounters -Arguments @{ | |
| DsmContext = $PSItem.DsmContext | |
| DsmCounters = $PSItem.DsmCounters | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment