Added modules from WinAPI

This commit is contained in:
Lifailon 2024-01-29 23:41:19 +03:00
parent 56da334ea2
commit b709d7e96b
24 changed files with 657 additions and 125 deletions

View file

@ -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]@{