Last active
July 7, 2025 18:56
-
-
Save simstems/da947e028b8fb0a1f7a8d5449a1bc109 to your computer and use it in GitHub Desktop.
Revisions
-
simstems renamed this gist
Jul 7, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
simstems created this gist
Jul 7, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ <# Invoke-Command -ComputerName REMOTEPC -ScriptBlock { Get-CimInstance -ClassName Win32_ComputerSystem | Select-Object Name, Manufacturer, Model Get-CimInstance -ClassName Win32_BIOS | Select-Object -ExpandProperty SerialNumber } #> Invoke-Command -ComputerName REMOTEPC -ScriptBlock { $sys = Get-CimInstance -ClassName Win32_ComputerSystem $bios = Get-CimInstance -ClassName Win32_BIOS [PSCustomObject]@{ Name = $sys.Name Manufacturer = $sys.Manufacturer Model = $sys.Model SerialNumber = $bios.SerialNumber } }