Skip to content

Instantly share code, notes, and snippets.

@kayasax
Created January 7, 2016 14:35
Show Gist options
  • Save kayasax/b451721ad963b2ad0c1d to your computer and use it in GitHub Desktop.
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
$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