Wshnetwork addwindowsprinterconnection remove




















Hi guys. Messages 3, Location We used a GPO to do this but another tech created it. So I searched for a GPO method and found this. Hopefully it works. Name If objPrinter. Network" ' Uncomment the second line if you want to set the new printer as the default WshNetwork. Rackmountsales Baseband Member. Messages Rackmountsales said:. Click to expand The Tek-Tips staff will check this out and take appropriate action. Click Here to join Tek-Tips and talk with other members!

Already a Member? Join your peers on the Internet's largest technical computer professional community. It's easy to join and it's free. Register now while it's still free! Already a member? Close this window and log in. Join Us Close.

Join Tek-Tips Forums! Join Us! By joining you are opting in to receive e-mail. Promoting, selling, recruiting, coursework and thesis posting is forbidden. Students Click Here. I'm new to the vbs world, but have a background in PHP. Ideally, what I'd like to do is cycle through the networked printers installed on a workstation. If it finds a specific printer installed, it should remove it, and install a printer from a different server. Basically, we're migrating from one server to another.

So I'm essentially going to just have a loop for each printer I need to deal with about 8. Try adding this under the For: Wscript. RE: determine if printer exixts presonally i would say that removing all printer connections before connecting printers is a logical one.

CreateObject "Scripting. Echo strPrinter 'Wscript. Clear WshNetwork. Echo Err. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

The Tek-Tips staff will check this out and take appropriate action. Click Here to join Tek-Tips and talk with other members! Already a Member? Join your peers on the Internet's largest technical computer professional community. It's easy to join and it's free. The help desk software for IT. Track users' IT needs, easily, and with only the features you need. Learn More ». Verify your account to enable IT peers to see that you are a professional.

Basically this.



0コメント

  • 1000 / 1000