Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ns='root/CIMV2/TerminalServices';CimClass -Namespace $ns | Where-Object { $_.cimclassname -notmatch '^(__|MSFT_|CIM_|WMINET_)'} | select -expand CimClassName | ForEach-Object { $_;'=' * $_.Length;Get-CIMInstance -namespace $ns -ClassName $_ -EA SilentlyContinue }
Add Comment
Please, Sign In to add comment