Steve Bona
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
The location of printers are
\\S-PRINT001.domainA.local
\\S-PRINT001.domainA.local
\\S-PRINT001.domainA.local
\\S-PRINT001.domainA.local
\\S-PRINT001.domainA.local
\\S-PRINT001.domainA.local
\\S-PRINT001.domainA.local
\\S-PRINT001.domainA.local
\\S-PRINT001.domainA.local
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks