Skip to content

Commit a2a0dac

Browse files
doctordnsjuanpablojofre
authored andcommitted
Update Getting WMI objects
Two amall errors: 1. The results of one command show as two badly line-broken lines - this is fixed with this RP. 2. In the final example, there was a typo in the Command
1 parent ba708c8 commit a2a0dac

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

reference/docs-conceptual/getting-started/cookbooks/Getting-WMI-Objects--Get-WmiObject-.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,13 @@ If you want information contained in the **Win32_OperatingSystem** class that is
106106
```
107107
PS> Get-WmiObject -Class Win32_OperatingSystem -Namespace root/cimv2 -ComputerName . | Format-Table -Property TotalVirtualMemorySize,TotalVisibleMemorySize,FreePhysicalMemory,FreeVirtualMemory,FreeSpaceInPagingFiles
108108
109-
TotalVirtualMemorySize TotalVisibleMem FreePhysicalMem FreeVirtualMemo FreeSpaceInPagi
110-
ory ry ngFiles
111-
--------------- --------------- --------------- --------------- ---------------
112-
2097024 785904 305808 2056724 1558232
109+
TotalVirtualMemorySize TotalVisibleMemory FreePhysicalMemory FreeVirtualMemory FreeSpaceInPagingFiles
110+
---------------------- --------------- ------------------ -==--------------------- ---------------
111+
2097024 785904 305808 2056724 1558232
113112
```
114113

115114
> [!NOTE]
116-
> Wildcards work with property names in **Format-Table**, so the final pipeline element can be reduced to **Format-Table -Property TotalV\*,Free\***
115+
> Wildcards work with property names in **Format-Table**, so the final pipeline element can be reduced to **Format-Table -Property Total*,Free*
117116
118117
The memory data might be more readable if you format it as a list by typing:
119118

0 commit comments

Comments
 (0)