6 Replies - 403 Views - Last Post: 14 June 2017 - 10:37 AM

#1 hexagod  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 242
  • Joined: 29-October 16

Anyone Have Any Experience With Add-Printer In Powershell?

Posted 18 May 2017 - 08:50 AM

YOYOYOYOYO,
Does anyone have any experience adding printers with powershell? I've created a program that moves files using Powershell with ease, now I would like to be able to add printers using powershell. I looked up some of the tutorials for adding printers with PS but I can't really understand the syntax. Could someone give me an example of adding a printer with Powershell if you know it well? When I'm done I'll post my full code for using VC++/.NET to add printers with PS in a GUI environment.

Thank you! :basecase:

Is This A Good Question/Topic? 0
  • +

Replies To: Anyone Have Any Experience With Add-Printer In Powershell?

#2 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6544
  • View blog
  • Posts: 30,651
  • Joined: 10-May 07

Re: Anyone Have Any Experience With Add-Printer In Powershell?

Posted 18 May 2017 - 12:06 PM

Why not do this within Active Directory?
Was This Post Helpful? 0
  • +
  • -

#3 hexagod  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 242
  • Joined: 29-October 16

Re: Anyone Have Any Experience With Add-Printer In Powershell?

Posted 19 May 2017 - 07:45 AM

View Postno2pencil, on 18 May 2017 - 12:06 PM, said:

Why not do this within Active Directory?


AD is really slow here... In fact I eventually want to make my own program to interface with AD aswell so I don't have to wait around for it to connect to DCs.. huge waste of my time. That's the same reason I wrote my own program to move files around. My PS data mover works extremely well... it's already saved me close to an hour of my time and I've only had it usable for a few days. Thing is.. with PS scripts.. the box opens then you can do other things. I have plenty to do when it's busy here and I like to be able to check a few boxes running entirely on my local machine (coded in VC++ so you know it's fast) click one button then do other things while I wait for the PS script to finish then when I see the window close itself I know I can back on that other project. Why waste my time connecting to DCs and computers remotely when I can just run scripts from my computer? The reason I don't want to just use Commandline is that I really like GUI interfaces for scripting... it's way quicker IMO. :sorcerer:
Was This Post Helpful? 0
  • +
  • -

#4 hexagod  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 242
  • Joined: 29-October 16

Re: Anyone Have Any Experience With Add-Printer In Powershell?

Posted 24 May 2017 - 11:28 AM

https://social.techn...hine?forum=ITCG

You can close this topic I found some good ones now on google. :taz:
Was This Post Helpful? 0
  • +
  • -

#5 Alamgir khan  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 34
  • Joined: 20-May 17

Re: Anyone Have Any Experience With Add-Printer In Powershell?

Posted 24 May 2017 - 11:52 AM

Thank you for inform and congratulate for finding solution.
if possible, share solution with us.

it will be helpful to other friends.
Was This Post Helpful? 0
  • +
  • -

#6 hexagod  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 242
  • Joined: 29-October 16

Re: Anyone Have Any Experience With Add-Printer In Powershell?

Posted 14 June 2017 - 08:15 AM

Alamgir khan, I can't get it to work here because the connect session PScommand is restricted. I'm still looking for a solution but looks like I can only move the driver files with PS and then I have to manually install. I'll post some good resources here later though for archiving purposes.
Was This Post Helpful? 0
  • +
  • -

#7 Alamgir khan  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 34
  • Joined: 20-May 17

Re: Anyone Have Any Experience With Add-Printer In Powershell?

Posted 14 June 2017 - 10:37 AM

Thank you dear, we will wait your reply.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1