[THIN] lpt1 port mapping on Windows Server 2003

  • From: "Rick Mack" <Rick.Mack@xxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Wed, 21 Jun 2006 06:17:34 +1000

Hi People,
 
Had a customer who was trying to do lpt1 port remapping and uncovered a feature.
_______________

Non-Administrators Cannot Remap an LPT Port to a Network Printer

Article ID       :       313644 
Last Review      :       October 29, 2003       
Revision         :       1.0    
This article was previously published under Q313644

SYMPTOMS

When a user who is not an administrator tries to use the net use command to 
remap an LPT port to a network printer (for example, net use lpt1: \\printer 
server\print share), and the LPT port is already assigned to the local parallel 
port, the LPT port is not remapped. A use who is not an administrator can still 
map a network printer to an LPT port that is not already assigned to a local 
parallel-port. 
 
CAUSE
 
This behavior occurs because only a member of the Administrators group can use 
the net use command to map the LPT port for a local (hardware) parallel port to 
a network printer. This behavior is designed to help improve security. 
 
RESOLUTION
 
To work around this behavior, use one of the following methods: 
*        Log on as an administrator, and then use the net use command.  
*        Use the devcon disable *PNP0401 command to disable the LPT port 
mapping to the local parallel port when the computer starts. The devcon disable 
*PNP0401 command is for LPT1. To find the hardware ID for other LPT ports, use 
the devcon findall * command. The devcon command must run when the computer 
starts. For a computer in a domain, you can set up Group Policy to run devcon 
as a computer startup script. To set Group Policy, open the appropriate group 
policy, open Computer Configuration\Windows Settings\Scripts 
(Startup/Shutdown)\Startup, and then add the command.      
*        If your program can print to the LPT2 port or the LPT3 port, use the 
net use command to map the network printer to the LPT2 port or the LPT3 port. 
Most computers do not have physical LPT2 or LPT3 ports, so a non-administrator 
can map an LPT2 port or an LPT3 port to a network printer.   
______________________________
 
Devcon is kind of interesting because it lets you do stuff like easily 
disabling NICs in a script.
 
And since Microsoft don't always have the last word, you have an alternative to 
disabling the physical LPT1 port, it can be remapped to a different logical 
port number (eg lpt2) using the device manager, leaving LPT1 free for remapping.
 
regards,
 
Rick
 
Ulrich Mack 
Volante Systems 


________________________________

From: thin-bounce@xxxxxxxxxxxxx on behalf of Roger Riggins
Sent: Wed 21/06/2006 2:19
To: thin@xxxxxxxxxxxxx
Subject: [THIN] palm hotsync in citrix?



Hey all. Has anybody found a way to make a Palm Z22 (one of our apps requires 
this model) synchronize via Hotsync in Citrix? It's a USB device, so I thought 
maybe the virtual COM port mapping would work. I tried it briefly and it didn't 
work right away, so I figured I'd check with you guys before I spend a ton of 
time on it.

 

Thanks!

Roger Riggins   
Network Administrator 
Lutheran Services in Iowa 
w: 319.859.3543 
c: 319.290.5687 
http://www.lsiowa.org 

 

Lutheran Services in Iowa Confidentiality Notice
==================================================================
The information contained in this communication may be confidential,
is intended only for the use of the recipient(s) named above, and
may be legally privileged. If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of its
contents, is strictly prohibited. If you have received this
communication in error, please return it to the sender immediately
and delete the original message and any copy of it from your computer
system. If you have any questions concerning this message, please
contact the sender.

#####################################################################################
This e-mail, including all attachments, may be confidential or privileged.  
Confidentiality or privilege is not waived or lost because this e-mail has been 
sent to you in error.  If you are not the intended recipient any use, 
disclosure or copying of this e-mail is prohibited.  If you have received it in 
error please notify the sender immediately by reply e-mail and destroy all 
copies of this e-mail and any attachments.  All liability for direct and 
indirect loss arising from this e-mail and any attachments is hereby disclaimed 
to the extent permitted by law.
#####################################################################################

Other related posts:

  • » [THIN] lpt1 port mapping on Windows Server 2003