From fd0c66c0d51f140afd9a0052d45f1e0ab04ae842 Mon Sep 17 00:00:00 2001 From: capntack Date: Sun, 16 Apr 2023 23:20:29 -0500 Subject: [PATCH] Added make/model & serial # commands --- ps-commands.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ps-commands.md b/ps-commands.md index aff2bd2..612e1e7 100644 --- a/ps-commands.md +++ b/ps-commands.md @@ -50,4 +50,18 @@ Get-ADPrincipalGroupMembership (Get-ADComputer $ComputerName) | select-object na Get-ADPrincipalGroupMembership (Get-ADUser $Username) | select-object name ``` -
\ No newline at end of file +
+ +### Fetch $ComputerName's Make & Model + +```powershell +Get-CimInstance -ComputerName $ComputerName -ClassName Win32_ComputerSystem | Select-Object -Property Manufacturer, Model +``` + +
+ +### Fetch $ComputerName's Serial Number + +```powershell +Get-CimInstance -ComputerName $ComputerName -ClassName Win32_bios | Select-Object -Property SerialNumber +``` \ No newline at end of file