Map a network printer to a domain user from a printer server.

Welcome Forums General PowerShell Q&A Map a network printer to a domain user from a printer server.

This topic contains 11 replies, has 6 voices, and was last updated by

 
Participant
1 month, 1 week ago.

  • Author
    Posts
  • #169972

    Participant
    Topics: 1
    Replies: 4
    Points: 23
    Rank: Member

    Hi all,

    I'm new in all PowerShell thing and i didn't try to find the right answer to my problem.

    i have a domain user windows 10 and i want to know plz how can i add him remotely anet work printer that installed on our print server in out organization?

    can you please help me with the correct command?

    Thanks very much.

  • #169993

    Participant
    Topics: 4
    Replies: 54
    Points: 382
    Helping Hand
    Rank: Contributor

    The best way is not always power shell,

    GPO works best for printers

  • #169999
    js

    Participant
    Topics: 25
    Replies: 678
    Points: 1,629
    Helping Hand
    Rank: Community Hero
    add-printer -connectionname \\server\printer
    
  • #170275

    Participant
    Topics: 1
    Replies: 4
    Points: 23
    Rank: Member

    The best way is not always power shell,

    GPO works best for printers

    I know to GPP option.
    i searched way to do that to a single computer by PS command.

  • #170278

    Participant
    Topics: 1
    Replies: 4
    Points: 23
    Rank: Member

    1
    2
    add-printer -networkconnection \\server\printer
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    I saw that command and this is the thing:

    when I'd opened PS session on my computer it worked but...when i opened Ps on to a remote computer in the domain I'm getting an error that server name (the printers server) doesn't exist

    i want to connect a network printer to a user remotely and not interrupt him and connect the printer in GUI mode.

  • #170281

    Participant
    Topics: 1
    Replies: 1530
    Points: 2,591
    Helping Hand
    Rank: Community Hero

    i want to connect a network printer to a user ....

    ... so "this user account" has to connect to the network printer. That's why GPOs are used to do it because they can run in the users context. You cannot attach remotely to a local user sesion. We have 2019 ... is it really asked to much for a user to connect to a network printer by himself?

  • #170296

    Participant
    Topics: 1
    Replies: 4
    Points: 23
    Rank: Member

    command not exicst

    -networkconnection

  • #170302

    Participant
    Topics: 1
    Replies: 4
    Points: 23
    Rank: Member

    Sorry, -connectionname. https://docs.microsoft.com/en-us/powershell/module/printmanagement/add-printer?view=win10-ps

     

    not working

    How can i attach a screenshot?

     

    • #170341
      js

      Participant
      Topics: 25
      Replies: 678
      Points: 1,629
      Helping Hand
      Rank: Community Hero

      It should work as a login script that runs as that user.

  • #170386

    Participant
    Topics: 0
    Replies: 1
    Points: 17
    Rank: Member

    GPO is the best way to achieve this.

    Take a look at "rundll32 printui.dll,PrintUIEntry", there are a lot of switches that could suit your case.

     

You must be logged in to reply to this topic.