Question Locked

Deleting LPT1 and remapping to a network computer

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
We want certain users to run a batch file that will delete the LPT1 port that connects to a local printer and remap it to a network printer. Ordinary users do not have the access rights to delete the port. Is there any way around this short of making them an administrator?

3 replies

by thumbsup2

On Windows XP, create a .BAT file and place it somewhere handy on the hard drive. Inside the .BAT file, type the command "net use LPT1 \\computername\sharename" (without the quotes). Then, place a shortcut to that batch file in the startup group of the user's profile (c:\documents and settings\username\Start Menu\Programs\Startup), or place it in the All Users profile if you want it to work no matter who's logged on.

Log off, then log back in again.

Should work.

As far as I know, this works for older OS's too, but I haven't tried it.

by unclebyron

The batch file has to delete the current mapping otherwise you get the " port already in use" error. Even if the port is unoccupied, the ordinary user doesn't have the rights to remap. That is the problem. We are trying the CPAU utility that is like "Run As" on a command line to run the batch file with the needed rights.

This discussion is closed to new replies.