This is my first post in this forum so i hope i am following the rules correctly.
I am trying to set up a DOMAIN B printer on DOMAIN A computer, and it doesnt work.
Add-printer -connectionname \printer-server\printer
“add-printer alternate user credentials are required to access the specified resource”
I have found no way to add my DOMAIN B credentials to the script. Also, using a wscript.shell object, the printer is not found at all.
The two domains have trust relationship whereas i can connect to the printer via SMB share and suitable DOMAIN B user credentials.
PS version: 5.1
Platform: win10, 1909
Thanks in advance