# Remotely Installing Printers

**URL:** <https://forums.powershell.org/t/remotely-installing-printers/466>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/remotely-installing-printers/466 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/remotely-installing-printers/466/1 "2011-12-31T18:30:00Z")

</div>

by cheex at 2013-01-08 09:14:50

> I did a search and nothing came up. I would like to remotely install a printer on a RD host running windows 2008 R2. I believe i have the correct command and it give no errors however it doesn’t install the printer. The driver is installed on the host machine already. Also the command inside the { } works in CMD on the host machine, so i cant figure out why it’s not working with Invoke-Command. I have enabled   
>   
> `Invoke-Command -CN SERVER {rundll32 printui.dll,PrintUIEntry /if /b "BELLINV1-T" /r "IP-ADDRESS" /m "EPSON FX-2190 ESC/P"}`  
>   
> I have also tried adding -ScriptBlock and -Credential [Domain]\Administrator I have even tried:  
>   
> `Enter-PSSession -ComputerName SERVER -Credential [Domain]\administratorInvoke-Command {rundll32 printui.dll,PrintUIEntry /if /b "BELLINV1-T" /r "IP-ADDRESS" /m "EPSON FX-2190 ESC/P"}`  
>   
> Also, tried a few alterations of the above using  
> `Invoke-Expression`  
>   
> Any help would be great.

by DonJ at 2013-01-08 09:23:59

> Does the command inside the { } work as-is when run from Windows PowerShell directly on the host machine? Not Cmd.exe, but PowerShell.

by cheex at 2013-01-08 09:50:06

> yes, thats the odd part.

by DonJ at 2013-01-08 10:03:10

> Then it’s likely a delegation issue. For some reason the command is trying to access a resource that requires authentication, but isn’t able to use the delegated credential sent over by Remoting.

by cheex at 2013-01-08 11:26:36

> yeah thats kind of what i was thinking. I will look into it.

---

<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, 9:03pm UTC](https://forums.powershell.org/t/remotely-installing-printers/466/2 "2024-05-16T21:03:44Z")

</div>


