Edited and added commands
This commit is contained in:
parent
c65689c56e
commit
f93ffa5c9d
1 changed files with 7 additions and 1 deletions
|
@ -5,7 +5,13 @@ Note: unless otherwise stated, replace any variable such as `$ComputerName` with
|
|||
### Remotely Fetch a (Partial) Installed Program List for $ComputerName
|
||||
|
||||
```powershell
|
||||
Get-WmiObject win32_product -ComputerName $ComputerName | select Name, version
|
||||
Get-WmiObject win32_product -ComputerName $ComputerName | Sort-Object | select Vendor, Name, version
|
||||
```
|
||||
|
||||
### Remotely Fetch Installed Programs with $SearchTerm in them from $ComputerName
|
||||
|
||||
```powershell
|
||||
Get-WmiObject win32_product -ComputerName $ComputerName | Where-Object {$_.$Column -like “*$SearchTerm*”} | Sort-Object | select Vendor, Name, version
|
||||
```
|
||||
|
||||
<br>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue