Link to home
Start Free TrialLog in
Avatar of Steve Bona
Steve BonaFlag for Canada

asked on

Add Multiple printers sharename remotely on computer with PowerShell

I need to add multiple printers from my print server to a computer which need those printers
The location of printers are
\\S-PRINT001.domainA.local\LAS0001
\\S-PRINT001.domainA.local\LAS0002
\\S-PRINT001.domainA.local\LAS0003
\\S-PRINT001.domainA.local\LAS0004
\\S-PRINT001.domainA.local\LAS0005
\\S-PRINT001.domainA.local\LAS0006
\\S-PRINT001.domainA.local\LAS0007
\\S-PRINT001.domainA.local\LAS0008
\\S-PRINT001.domainA.local\LAS0009

And the Name of the computer S-APP007.domainA.local

Before write a little script, i try this powershell command in remote session
Add-Printer -ConnectionName "\\S-PRINT001\LAS0001" -CimSession S-APP007
The command doesn't work
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Steve Bona

ASKER

Oupsss you're right, I forgot network printers specification, so i will use GPO for my solution
Thanks