Link to home
Create AccountLog in
Avatar of Line One
Line One

asked on

batch file referencing an LPT port won't run for user but will run for administrator on XP SP2

I have an XP SP2 system.  I have created the following batch file that I want to  run for regular users at startup.   "net use lpt1 \\<computername>\<sharename> /persistent:yes".  When I log in as the administrator it works fine. However when I boot up and run it as a regular user it doesn't work. Is it because of the reference to LPT1 - regular users don't have permissions for mapping devices?  
Avatar of qz8dsw
qz8dsw
Flag of New Zealand image

Hi lineone,

Is this enviroment one that has a domain controlller, or just a whole heap of XP machines sharing what they share?

More than likely I'd say they don't have access to the share at first guess (So check the share permissions on the machine sharing the printer).
Most "users" have the ability to map network resources whether they be drives or printers.
(Otherwise everyone would have to have to be an admin on the local machine just to make it work)

Does your administrator username and password also match the administrator username and password on the machine where the printer is shared?

We need to know where the problem could come from (Domain or individual machine)

Terry
ASKER CERTIFIED SOLUTION
Avatar of weareit
weareit
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Line One
Line One

ASKER

Sorry it took me some time to get around to trying the different options out. As far as points go, oBdA and weareit were right on the money so perhaps 50 to each of them and then 25 to qz8dsw.

Forced accept.

Computer101
EE Admin