Some silly little powershell notes from a silly little man.

Mapping network printers

This one is super duper straightforward. Can probably use it remotely through the command line option on a UEM (Unified Endpoint Management) tool.

Add-Printer -ConnectionName \\printer-server\PRINTERNAME

Fetching an installer from a URL and install it

This one we create a temporary directory, set the URL where the installer can be located, download, then install it. If there’s any switches you want applied to the installer, place them after the /i <installer> portion.