Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding and Removing Printers via logon and logoff script

Status
Not open for further replies.

ArcUser

IS-IT--Management
Nov 15, 2001
52
GB
Can anyone please advise how I can do this. I have tried various methods already and can get then to add but I cannot remove then once I logoff. I want to deploy printers at users logon - ideally using GPO's.

The best I have seen so far is from
but the removal fails - the addition works fine. Can anyone see anything obvious I have missed....

Thnxs
 
This FAQ is worth a look but i've never managed to get vb script to remove printers at logoff either, they work flawlessly at logon. faq329-5798

I ended up using con2prt which is an MS util, i put the exe in a share then run it from a bat file at logoff and it works fine.

\\server\share\CON2PRT /F

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top