Created
January 7, 2016 14:35
-
-
Save kayasax/b451721ad963b2ad0c1d to your computer and use it in GitHub Desktop.
modify wmi property.
Key is to use [wmiobject].put() method
source https://technet.microsoft.com/en-us/library/ee692805.aspx
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
$p=gwmi sms_packagebaseclass -Namespace root\sms\site_CT1 |?{$_.packageId -eq "CT1006FA"} | |
$p.Priority=2 | |
$p.put() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment