You get a bonus - 1 coin for daily activity. Now you have 1 coin

Windows: net use lpt1 issue in XP

Practice



There is a Windows XP SP2 workstation in a Windows Server 2003 domain. It is necessary to allow printing to a network printer from DOS applications.

From under the user account we run

net use lpt1: \\SERVER\HP2300-FIN
Недействительный пароль для \\SERVER\HP2300.

Введите имя пользователя для 'SERVER':
...
Недействительный пароль для \\SERVER\HP2300.
...
Системная ошибка 5.

Отказано в доступе.

Windows: net use lpt1 issue in XP
The command net use lpt2: with the same parameters runs without any problem. If you log in with the domain administrator account, there is also no problem. The domain user account is included in the computer's local "Power Users" group, and there is no local user account. If the domain user is added to the local "Administrators" group, the command runs normally.

The reason is that the user does not have permission to use the LPT1 port, while the administrator does. The password prompt in this case is not for connecting the printer, but for disconnecting LPT1 from its binding to the physical port.

Possible solutions:

  • Disable lpt1 in the BIOS
  • Disable lpt1 in Device Manager (these two options apply if there are no devices physically connected to lpt1)
  • Change the port in the program you are printing from to a different one (not possible in all programs)
  • Grant administrator rights (a bad option for offices and inexperienced users).

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Operating Systems and System Programming"

Terms: Operating Systems and System Programming