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?  
Who is Participating?
weareitConnect With a Mentor Commented:
Most likely a group policy implementation if this is a domain.

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)

oBdAConnect With a Mentor Commented:
That's indeed because since XP, regular users aren't allowed to remap a device that physically exists.
Some possible Workarounds are described here:
Non-Administrators Cannot Remap an LPT Port to a Network Printer
lineonecorpAuthor Commented:
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.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.