seemlessly mapping printer in XP

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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

lf_lakeAuthor Commented:
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
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.

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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.

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.