Last active
December 14, 2015 09:50
-
-
Save VertigoRay/5068130 to your computer and use it in GitHub Desktop.
SCCM 2012 - Driver Importing. This code to deletes drivers with bad sources.
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
$a = (Get-WmiObject -ComputerName 'myserver.fqdn' -Namespace 'root\SMS\Site_XXX' -Class 'SMS_Driver' | ?{!(test-path $_.ContentSourcePath)}) | |
$a | %{$_.delete()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment