Added modules from WinAPI
This commit is contained in:
parent
56da334ea2
commit
b709d7e96b
24 changed files with 657 additions and 125 deletions
|
|
@ -1,7 +1,11 @@
|
|||
function Get-MemorySlots {
|
||||
$Memory = Get-CimInstance Win32_PhysicalMemory | Select-Object Manufacturer,PartNumber,
|
||||
ConfiguredClockSpeed,@{Label="Memory"; Expression={[string]($_.Capacity/1Mb)}},
|
||||
Tag,DeviceLocator,BankLabel
|
||||
$Memory = Get-CimInstance Win32_PhysicalMemory |
|
||||
Select-Object Manufacturer,
|
||||
PartNumber,
|
||||
ConfiguredClockSpeed,
|
||||
@{Label="Memory"; Expression={[string]($_.Capacity/1Mb)}},
|
||||
Tag,DeviceLocator,
|
||||
BankLabel
|
||||
$CollectionMemory = New-Object System.Collections.Generic.List[System.Object]
|
||||
$Memory | ForEach-Object {
|
||||
$CollectionMemory.Add([PSCustomObject]@{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue