Re: Disable LPT1 script

From: Lanwench [MVP - Exchange] (lanwench_at_heybuddy.donotsendme.unsolicitedmail.atyahoo.com)
Date: 02/10/04


Date: Tue, 10 Feb 2004 14:50:29 -0500

Ah, sorry, I hadn't read the article. Can your DOS app be redirected to use
LPT2 or 3, by any chance? Might be easier.

Not sure which permissions you'd need to change this behavior on the local
computer w/o granting full admin rights - I'm sure some guru will chime in
with another answer.

anonymous@discussions.microsoft.com wrote:
> If you read the kb article it explains exactly why it
> cannot be done in the usual manner:
>
> "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."
>
> I need someone to explain to me how the recommended fix in
> the article is supposed to work using devcon and start up
> scripts. I cant get it to work.
>
> Cheers
>
> >-----Original Message-----
>> I guess I'm confused why they can't use the net use command while
>> logged in using their domain account - even with regular local user
>> permissions, this should work just fine. Can't you just put it in
>> these users' login scripts, or even just a batch file in their
>> startup folders? If
> you try to run that
>> command manually from their computers while logged in as them, what
>> errors do you get?
>>
>> Jamie wrote:
>>> I have an old dos app that prints to LPT1. I need to
>>> allow a couple of WinXP PC's to map the print port to
>>> LPT1. This is easy if the user is loging on locally (net
>>> use lpt1: \\server\printer) but they are loging in using
>>> their domain account.
>>>
>>> I have read the following MS article but I dont really
>>> understand it:
>>> http://support.microsoft.com/default.aspx?scid=kb;en-
>>> us;313644
>>>
>>> I have downloaded Devcon and I can use it as desired when
>>> logged onto the XP machine as local account with admin
>>> rights (devcon disable *PNP0401). But I cant get it to
>>> work in a group policy startup script. I have created an
>>> OU with the relevant XPmachines in it. But I'm not sure
>>> what to put in the script or where to locate the
>>> devcon.exe for the script to work correctly.
>>>
>>> Anyone got any ideas on this?
>>
>>
>> .



Relevant Pages

  • RE: Problems Printing After XP Upgrade from 98SE
    ... In addition to not printing, ... all of the jobs from the queue and print a test page from XP, ... > Use the net.exe command to establish a persistent connection. ... > network printer path when the LPT port exists on the computer as a physical ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Problems Printing After XP Upgrade from 98SE
    ... Use the net.exe command to establish a persistent connection. ... network printer path when the LPT port exists on the computer as a physical ... Because Novell NetWare's CAPTURE command is not supported in Windows XP, ... Microsoft Online Partner Support ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Direct Printing
    ... You need to map the network printer to an LPT port. ... the Net Use command from the command line to do this. ... "Norbert" wrote in message ...
    (microsoft.public.access.reports)
  • Re: Access Denied
    ... "taxfree" wrote: ... that you are trying to remap an lpt port ... >> command in the login script to capture their LPT1 output and send it ... >> Enter the user name for 'lepus': ...
    (microsoft.public.win2000.networking)
  • Re: To drag a file as parameter to script
    ... by original driver that produced it. ... Wouldn't a shortcut to the command console Print utility do the job? ... file directly to the COM or LPT port. ... WXP's command line reference says this for the destination of a copy ...
    (microsoft.public.scripting.wsh)