# I need to have users click on a hyperlink and execute a script to Add-Printer

**URL:** <https://forums.powershell.org/t/i-need-to-have-users-click-on-a-hyperlink-and-execute-a-script-to-add-printer/12588>\
**Category:** PowerShell Help\
**Created:** [May 20, 2019, 11:08am UTC](https://forums.powershell.org/t/i-need-to-have-users-click-on-a-hyperlink-and-execute-a-script-to-add-printer/12588 "2019-05-20T11:08:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dompowershell](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@dompowershell](https://forums.powershell.org/u/dompowershell)\
**Post date:** [May 20, 2019, 11:08am UTC](https://forums.powershell.org/t/i-need-to-have-users-click-on-a-hyperlink-and-execute-a-script-to-add-printer/12588/1 "2019-05-20T11:08:19Z")

</div>

I want to put together a powershell script that removes old network print queues (remove-printer) from the workstation and add new Print queues (add-printer). the Add-printer seems to require elevated priviledge. So how would I formulate the script to Add-Printer containername \printserver\name with the user executing it via a hyperlink without them being a local admin. I tried running the command as a local admin but then the local admin does not see the regular users printer collection (problem there). My goal here is to migrate the users print queues from an old print server to a new one using the same print queue names. Thanks in advance for any help on this.

---

<div class="post-metadata">

**Author:** ![js2010](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@js2010](https://forums.powershell.org/u/js2010)\
**Post date:** [May 20, 2019, 12:21pm UTC](https://forums.powershell.org/t/i-need-to-have-users-click-on-a-hyperlink-and-execute-a-script-to-add-printer/12588/2 "2019-05-20T12:21:24Z")

</div>

Users (or a login script) should be able to run

```
add-printer -connectionname \server\printer
```
 without admin privs, unless you have an unusual setup. You can also use group policy.

---

<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:** [May 20, 2019, 5:18pm UTC](https://forums.powershell.org/t/i-need-to-have-users-click-on-a-hyperlink-and-execute-a-script-to-add-printer/12588/3 "2019-05-20T17:18:40Z")

</div>

Set a GPO to allow users to do this. No reason to script it. This is a well documented thing.

Example:

> **[Allow Non-administrators to Install Printer Drivers via GPO – TheITBros](https://theitbros.com/allow-non-admins-install-printer-drivers-via-gpo/)**
>
> We will show you how allow non-administrators to install printer drivers on Windows 10 via GPO

> **[Allowing Standard Users to Install Network Printers on Windows 7 without...](https://docs.microsoft.com/en-us/archive/blogs/7/allowing-standard-users-to-install-network-printers-on-windows-7-without-prompting-for-administrative-credentials)**

[https://answers.microsoft.com/en-us/windows/forum/windows\_7-hardware/install-network-printers-without-local-admin/b21aa72b-5a7f-485d-999e-f844e7d4a550](https://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/install-network-printers-without-local-admin/b21aa72b-5a7f-485d-999e-f844e7d4a550)

---

<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:32pm UTC](https://forums.powershell.org/t/i-need-to-have-users-click-on-a-hyperlink-and-execute-a-script-to-add-printer/12588/4 "2024-05-16T20:32:48Z")

</div>


