Tuesday, March 25, 2014

List Applications Installed on a Remote or Local Machine with Powershell

Joe Piggeé

This one-liner will list all application on your local computer, or remote computer. If you do not include the -Computername parameter, it will list all applications on your local machine.

Get-Wmi -Class Win32_Product -Computername TypeComputerNameHere | Select-Object -Property Name

 

*http://technet.microsoft.com/en-us/library/bb978526.aspx

PePELePuu

Sunday, March 2, 2014

PowerShell: Get Printer Information

By: Joe Piggee

$PrintServer=Read-host "Enter the Print Server Name"

$SavePath="c:\temp\$PrintServer.csv"

Get-WMIObject -class Win32_Printer -computer $printserver | Select Name,DriverName,PortName | Export-CSV -path $savepath

Write-Host "File saved to:" $SavePath