PowerShell Logo Small

Set-PrinterProperty



This is the built-in help made by Microsoft for the command 'Set-PrinterProperty', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Modifies the printer properties for the specified printer.

SYNTAX


Set-PrinterProperty [-PrinterObject] <CimInstance> [-PropertyName] <String> [-Value] <String> [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-Confirm]
[-WhatIf] [<CommonParameters>]
Set-PrinterProperty [-PrinterName] <String> [-PropertyName] <String> [-Value] <String> [-AsJob] [-CimSession <CimSession[]>] [-ComputerName <String>] [-ThrottleLimit
<Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-PrinterProperty [-InputObject] <CimInstance> [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-PrinterProperty cmdlet modifies the printer properties for the specified printer.


You cannot use wildcard characters with Set-PrinterProperty. You can use Set-PrinterProperty in a wps-2 remoting session.


You need administrator privileges to use Set-PrinterProperty.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=289480
Get-PrinterProperty

REMARKS

<

Examples


Example 1: Set a printer property

PS C:\>Set-PrinterProperty -PrinterName printer2 -PropertyName "Config:PropertyName" -Value True



This command sets the Config:PropertyName property of the printer named printer2 to True.