Win2k/XP logon script and Printer

azev

Golden Member
Jan 27, 2001
1,003
0
76
Well I figure out on how create logon script to connect user to network printers. What I cant figure out though how to get those printer disconnected from their computer when they log off.
I setup VBS script to connect to the network printer and I assume you need another vbs script for disconnecting the printer. Anyone here know how to create this script ??

Thanks
 

spyordie007

Diamond Member
May 28, 2001
6,229
0
0
you shouldnt need to "disconnect" the printers, if they are network printers the logoff process will take care of that.

-Spy
 

azev

Golden Member
Jan 27, 2001
1,003
0
76
Everybody in the company is using a laptop. This is the major reason why I need them to disconnect to the network printer before they leave.
 

josphII

Banned
Nov 24, 2001
1,490
0
0
what does having a laptop have to do with anything? I dont understand why they need to disconnect.
 

Wolf00

Member
May 15, 2003
52
0
0
Because I also use a laptop at work, I can see the reason to have the printer disconnected when they log off. The reason I would do it is because when the computer isn't on the network, the computer still tries to find the printer and causes delays while it's trying to find it. Also, if a network printer is set as the default printer when a laptop is offline, then it would be very easy to make the mistake of printing to that printer when somebody intended to use a local printer or another network printer.

azev: What you may want to look at is deleting the printer rather than disconnecting. I assume that your script adds the printer and makes it the default during login. You could setup a logoff script to delete the printer. Also, would you mind sending me the code you're using to add the printer? I'm actually in the process of figuring out the best way to install network printers and if you've got working code, that would be very helpful as a guide.
 

azev

Golden Member
Jan 27, 2001
1,003
0
76
Good Point Wof00, I want all my users to delete their network printer so they dont get confused with their own personal printer at home.
We have like 10 network printer and having that many printer actualy cause many confusion when they are at home. I dont mind sharing the code with you, but I have it on the server at work. Btw I've got the code from Google (amazing what you can find there). I did saw some code to delete printer but my main concern is logon and logoff time. Having to install 10 printers at logon will cause them to cry waiting, same thing with logging off. Well I'll let you know whats up.......
 

Wolf00

Member
May 15, 2003
52
0
0
Dizway,
It's not a matter of can't figure it out, it's just that I haven't had the time to even try to figure it out yet. I figured if I had a login script to work from, then it would save me some time of looking for one.