Cannot Map LPT1 on Windows XP/Vista
In Windows XP Service Pack 2/Vista/2008, if you attempt to map a parallel port with NET USE (eg NET USE LPT1 \\SERVER\QUEUE), you receive the following error:
Enter the user name for 'server':
This occurs because under these operating systems, non-administrators cannot map an LPT port which already exists as a physical port (usually LPT1).
In Windows XP, one solution is to grant the user local administration rights. In Windows Vista/2008, this does not work because users with local administration rights are not granted those rights unless they elevate specific tasks with User Account Control (UAC). But even that does not work because a command prompt or script which is elevated with UAC runs under a different context to the logged-in user, so the mapped port is not available to other applications. So the only way to map a port is via the same process which runs the application requiring the mapped port, which will lose the user's mapped drives. So there are a number of complications. However, if the user is granted local administration rights, and UAC is disabled, the NET USE command works properly for the logged-in user.
But a more elegant solution which enables NET USE to operate as expected in any configuration is to disable the hardware port:
Copyright © 1996-2019 Cadzow TECH Pty. Ltd. All rights reserved.
Question/comment about this page? Please email firstname.lastname@example.org