Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Listing of Writable String type WMI Properties
# Code based off of -
$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.