Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Listing of Writable String type WMI Properties
# Code based off of - http://www.powershellmagazine.com/2012/09/06/pstip-get-all-writeable-properties-of-a-wmi-class/
$Classes = Get-WMIObject -List
$Classes | ForEach-Object {
$className = $_.Name
$_.Properties | ForEach-Object {
foreach ($qualifier in $_.Qualifiers) {
if (($qualifier.Name -eq "Write") -and ($_.Type -eq "String")) {
$className, $_.Name
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.