We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3046651 commit d5fdf36Copy full SHA for d5fdf36
CIM/README.md
@@ -3,15 +3,20 @@
3
## NumberOfLogicalProcessors
4
5
```powershell
6
+$this = @{
7
+ ServerName = $env:COMPUTERNAME
8
+}
9
+
10
$Parameters = @{
11
ComputerName = $this.ServerName
12
Class = "Win32_ComputerSystem"
13
ErrorAction = "Stop"
14
}
15
-Write-Verbose "Getting the number of files based on processor count."
-$this.Files = (Get-WmiObject @Parameters).NumberOfLogicalProcessors;
16
+Write-Host "Getting the number of files based on processor count."
17
+$this["Files"] = (Get-WmiObject @Parameters).NumberOfLogicalProcessors;
18
if ($this.Files -gt 8) {$this.Files = 8};
19
+$this.Files
20
```
21
22
0 commit comments