Add a printer driver

  • Context

My colleague asked for a new printer driver that wasn’t built-in Windows.

  • Problem

Whenever I used both InfPath and Name parameters for the Add-PrinterDriver cmdlet, it throws an error:

  • Solution

Use the built-in executable pnputil.exe to first inject the driver in the catalog using its .inf file and then the Add-PrinterDriver cmdlet with its Name parameter only.

pnputil.exe  /add-driver "$($env:temp)\setup\Xerox_C310_C315_PCL6.inf"
Add-PrinterDriver -Verbose -Name "Xerox C315 Color MFP V4 PCL6"

B..ugly 😦

Prefer 5GHz

  • Context

I’ve had a Lenovo laptop in my hands that had a Wi-Fi-6 wireless card and wanted to make sure it uses the 5Ghz band instead of 2.4Ghz.

  • Problem

The default settings were showing that there’s no prefrence 😦

My refrence page from Intel named “Recommended Settings for 802.11ac Connectivity” didn’t show exactly the same settings because the manufacturer isn’t Intel.

  • Solution

Anyway, there isn’t much to do. In this case, it’s:

Set-NetAdapterAdvancedProperty -Name 'Wi-Fi' -RegistryKeyword 'PreferredBand' -RegistryValue '2' -Verbose

Now, the preferred band is set to 5GHz 😎