• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

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?  
0
lineonecorp
Asked:
lineonecorp
2 Solutions
 
qz8dswCommented:
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
0
 
weareitCommented:
Most likely a group policy implementation if this is a domain.

http://technet2.microsoft.com/windowsserver/en/library/17d44d9a-cf4b-4a6a-94ec-093cb5f8b2b71033.mspx?mfr=true

-saige-
0
 
oBdACommented:
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
http://support.microsoft.com/?kbid=313644
0
 
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.

0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now