# Setting Printer Permissions by Using Powershell

**URL:** <https://forums.powershell.org/t/setting-printer-permissions-by-using-powershell/9848>\
**Category:** PowerShell Help\
**Created:** [December 12, 2017, 11:23pm UTC](https://forums.powershell.org/t/setting-printer-permissions-by-using-powershell/9848 "2017-12-12T23:23:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oguzozan](https://avatars.discourse-cdn.com/v4/letter/o/b77776/32.png) [@oguzozan](https://forums.powershell.org/u/oguzozan)\
**Post date:** [December 12, 2017, 11:23pm UTC](https://forums.powershell.org/t/setting-printer-permissions-by-using-powershell/9848/1 "2017-12-12T23:23:58Z")

</div>

Hi guys,

I have a print server and I want to add a new printer by using Powershell. I have a script to do this however there is a important problem for me. I want to remove ‘everyone’ from printer permission settings and I want to add new user such as ‘domain\user1’. Is there anyway to do this.

My script is below, it works but in addition i need to set permission settings.

$PrinterPort3 = “10.20.80.188”

Add-PrinterPort -Name $PrinterPort3 -PrinterHostAddress $PrinterPort  
Add-Printer -Name Barcode -DriverName “ZDesigner GK420d (EPL)” -PortName $PrinterPort3

---

<div class="post-metadata">

**Author:** ![postanote](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@postanote](https://forums.powershell.org/u/postanote)\
**Post date:** [December 13, 2017, 12:28am UTC](https://forums.powershell.org/t/setting-printer-permissions-by-using-powershell/9848/2 "2017-12-13T00:28:52Z")

</div>

See these examples:

Add Printer Permission  
Add Printer Permission using Security Definition Description Language (SDDL). The function adds full controll rights to the SDDL. Use Get-Printer and Set-Printer to modify Printer Permission on local and Remote Computers. Requires Microsoft PS Module PrintManagement.  
‘[gallery.technet.microsoft.com/scriptcenter/Add-Printer-Permission-c0ece1f3](http://gallery.technet.microsoft.com/scriptcenter/Add-Printer-Permission-c0ece1f3)’

Modify Printer Permissions  
This script was created to modify the DACL of printer objects. It can be used to add specific permissions or remove permissions from printers on the localhost or a specified server. It accepts access masks, such as “ManageDocuments”, in either text or integer based format.  
[gallery.technet.microsoft.com/scriptcenter/Modify-Printer-Permissions-149ae172](http://gallery.technet.microsoft.com/scriptcenter/Modify-Printer-Permissions-149ae172)’

Weekend Scripter: Add Security Groups to Print Servers by Using PowerShell  
‘[Weekend Scripter: Add Security Groups to Print Servers by Using PowerShell - Scripting Blog](http://blogs.technet.microsoft.com/heyscriptingguy/2014/08/10/weekend-scripter-add-security-groups-to-print-servers-by-using-powershell)’

Manage Printers  
‘[PowerShell – Manage printers | blog.bjornhouben.com](http://blog.bjornhouben.com/2013/07/13/powershell-manage-printers)’

---

<div class="post-metadata">

**Author:** ![oguzozan](https://avatars.discourse-cdn.com/v4/letter/o/b77776/32.png) [@oguzozan](https://forums.powershell.org/u/oguzozan)\
**Post date:** [December 13, 2017, 3:51am UTC](https://forums.powershell.org/t/setting-printer-permissions-by-using-powershell/9848/3 "2017-12-13T03:51:15Z")

</div>

Thanks to answer postanote.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:37pm UTC](https://forums.powershell.org/t/setting-printer-permissions-by-using-powershell/9848/4 "2024-05-16T20:37:03Z")

</div>


