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

Posted on 2007-09-28
Last Modified: 2010-05-18
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?  
Question by:lineonecorp
    LVL 15

    Expert Comment

    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)

    LVL 12

    Accepted Solution

    Most likely a group policy implementation if this is a domain.

    LVL 82

    Assisted Solution

    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

    Author Comment

    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.

    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
    When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now