seemlessly mapping printer in XP

Posted on 2004-11-23
Last Modified: 2013-12-19
I used the following lines to map a user to a shared printer on NT4
net use lpt1 /d
:: delete incase wrong printer exists
net use lpt1 \\srvprnt\Accts05

the user is now on XP and when the batch file runs (it is in all users startup) it prompts her for a username and password.
is there a way to map those printers seemlessly like in NT (without having to make the user an admin user or having to place the admin username and password in the batch file?

i presently use a workaround by using a scheduled job that calls the batch file

kindly assit if possible
Question by:lf_lake
    LVL 13

    Expert Comment

    Is this NT4 computer a server or a workstation?  Are you in a domain or a workgroup?  

    If you are in a workgroup then you need to enable the guest account on the NT4 computer and assign it permissions to the printer.  Then you should be able to map the printer without an account or password (or have it use the guest account like this):

    net use lpt1 \\srvprnt\Accts05 /user:guest

    Another option would be to ensure a user account exists on the NT4 machine that matches the account used on the XP machine.  This includes the password.

    If you are in a domain environment and both machines are members of the domain, your problem is most likely a permissions problem.  Make sure the XP user has access to the printer.

    Please post back if you need more help.


    Author Comment

    i'm sorry I should have been more specific  

    I am in a domain (NT)

    I know the problem is permission but it cannot be overcome unless I use  an admin account and password to run the batch file.
    The user can access the printer via group permissions other.  the user can run the batch file if she moves to an NT machine and other admin users (using XP) can run the batch file so i know it is XP specifically.

    hope that helps
    LVL 13

    Expert Comment

    Is the NT4 print server also a domain controller?  In any case, what happens if you enable the guest account and give it print priviledges.  Can the XP machine map it now?  This is just for the sake of testing...

    I seem to remember running across something like this before.  I'll do some more digging and post again if I find something.

    LVL 13

    Accepted Solution

    Ah ha!  Check this thread out:

    It is long but has all the info you need.  Looks like XP just doesn't like you redirecting a local port when not an admin.  NT4 let you get away with this.


    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
    The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 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

    24 Experts available now in Live!

    Get 1:1 Help Now