From 5335dd8748b893427091714e585a13b303876b2b Mon Sep 17 00:00:00 2001 From: capntack Date: Mon, 10 Apr 2023 19:18:33 -0500 Subject: [PATCH] Further defined command --- ps-commands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ps-commands.md b/ps-commands.md index cb6f8b3..ea2deec 100644 --- a/ps-commands.md +++ b/ps-commands.md @@ -12,7 +12,7 @@ Get-WmiObject win32_product -ComputerName $ComputerName | Sort-Object | select V
-### Remotely Fetch Installed Programs with $SearchTerm in them from $ComputerName +### Remotely Fetch Installed Programs with $SearchTerm in them from $ComputerName sorted by $Column (Vendor, Name, or version) ```powershell Get-WmiObject win32_product -ComputerName $ComputerName | Where-Object {$_.$Column -like “*$SearchTerm*”} | Sort-Object | select Vendor, Name, version