• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Win2k: Automounting a printer for diff users w/ .bat file

smp

Diamond Member
Hi all

Okay .. this is the scenario at the school that I work at:

We have a win2k network, we use a script like this - net use x: \\servername\sharename\ /user:username password (some generic one) .. to mount a share off of a file server .. this works okay, but when ppl log into the computer sometimes it complains "could not reestablish a network connection to \\xxxx\xxxx please enter a password .. this confuses people even though if they cancel the share still works. I use the same .bat file at home .. is there a neater way to do this?

We also have a printer, and there are many users .. when they log on to a computer, their local profile doesn't have a printer mounted .. I think it's the local profile ..

anyways .. the printer is like this file://domain/printername
basically .. so I have to go around and set printers up for people all the time (I'm not the tech, someone else is) .. and this is really fvcking annoying ..
what is the simplest way to get the printer on there automatically?
Any info would be much appreciated, thank you.
 
Here's a Link to adding a printer using the command line so you can use it in your logon scripts. Here's another one but it's for NT so I don't know how well it will work. Linky

You should just be able to use net use x: \\servername\sharename\ without /user:username password to map the share. Well that depends on the permissions on the share you are mapping. What are the permissions on the share? Do all users have acces? Some? Read? Write? Does everyone get the same share?
 
Originally posted by: mikecel79
Here's a Link to adding a printer using the command line so you can use it in your logon scripts. Here's another one but it's for NT so I don't know how well it will work. Linky You should just be able to use net use x: \\servername\sharename\ without /user:username password to map the share. Well that depends on the permissions on the share you are mapping. What are the permissions on the share? Do all users have acces? Some? Read? Write? Does everyone get the same share?

Yes, everyone gets the same share .. there is also another share which maps to their home dir, which is private, that one works fine.
I'm gonna check those links, thanks.
 
rundll32 printui.dll,PrintUIEntry /in /n\\pcserver\PC_Lab Printer

That is the scrpt that I am trying to use .. any online docs that i have found make it seem that this is supposed to work, but I get the "printer not found make sure .. " error.
I think it might have to do with the actual name of the printer . it has a space in it, can this be causing a problem?
 
Back
Top