Skip to main content

Posts

Showing posts with the label moc 6420

Set default printers with Powershell

The original question from class is how to set the default printer for your users. I’ve been working through different types of PowerShell remoting with no success. The actual method in the WMI class Win32_Printer will not let you set the default printer from a remote client. I attempted to use both remote sessions and the invoke-command cmdlet. I finally decided to do it via group policy. The code for the script dropped significantly when I went to this approach. There are a few requirements to this process. You need to have a Windows Server 2008 R2 and this can only be applied to your Windows 7 clients. Below is the script: ============================================= Script Name: DefaultPrinter.ps1 Auther: Jason A. Yoder, MCT MCTExpert, Inc. Website: www.MCTExpert.com Blog: www.MCTExpert.blogspot.com Date: 2010AUG22 Script Purpose: Set the default printer on clients. Requirments: This script is designed to be used as a logon s...