Skip to content

Commit 9b5e5e3

Browse files
authored
Update Get-CimInstance.ps1.md
1 parent 54a0631 commit 9b5e5e3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Get-CimInstance.ps1.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,19 @@ $GetCimInstanceParameters = @{
4747
}
4848
$reportingServicesConfiguration = Get-CimInstance $GetCimInstanceParameters
4949
```
50+
51+
52+
```powershell
53+
$GetCimInstanceParameters = @{
54+
ClassName = "SqlServiceAdvancedProperty"
55+
Namespace = "root\Microsoft\SqlServer\ComputerManagement14"
56+
}
57+
Get-CimInstance $GetCimInstanceParameters
58+
```
59+
60+
61+
Get-WmiObject -Namespace root\Microsoft\SqlServer\ComputerManagement10 `
62+
-Class SqlServiceAdvancedProperty |
63+
Where-Object {$_.PropertyName -eq 'VERSION'} |
64+
Format-Table ServiceName, PropertyName, PropertyStrValue -AutoSize
65+

0 commit comments

Comments
 (0)