We're running an old but critical DOS application on a Windows XP network. There is a printer connected to the server (Windows Server 2003) that is accessed by networked computers. To do this, we've been using the following in a batch file: c:\windows\system32\net use lpt1 \\Server\Label /y (The server is named Server and the printer is named Label).
We've now got a new Windows 7 machine that needs to access this printer, and apparently Net Use has different requirements. I'm a complete Win7 noob, but I need to make this work. The closest I've gotten is: c:\windows\system32\net use lpt1 \\Server\Label /USER:{workgroup}\{username}{password} I'm getting a system error 5 - access denied. This IS the correct user name and password for the user.
I can't disable lpt1 - there's a necessary local printer there.
Does anyone have a clue what the problem might be?
Recommended Answers
Jump to PostSounds like you are trying to run the script or command without elevated privileges.
Try running the same batch file "As Administrator" and see what you get.
Even though you are sending credentials to connect to the remote resource, you may not be running the command to edit …
Jump to Posti didnt see you had an lpt1 already.
try:
net use lpt2 \\server\share
Jump to PostWell, that seems to tell me that the lpt2 is trying to configure itself, but now you have multiple connctions to the same host.
With a windows box, your machine can only be authenticated once. So, for example, if you connect to a drive share with UserA. To that …
All 12 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.