无法使用net use命令在lpt1端口上连接网络打印机 [英] Unable to connect network printer on lpt1 port using net use command

查看:1070
本文介绍了无法使用net use命令在lpt1端口上连接网络打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Friends,

我们正在组织中运行终端服务器,最近一年在Windows 2000 Server上运行。我们将此服务器用于仅支持DOS打印的VB应用程序。服务器是独立服务器,不是任何域的成员。

打印场景:我们在lpt1上安装本地打印机系统,在lpt1上安装网络打印机。该应用程序有2个按钮,一个作为本地打印机,另一个作为打印服务器。为此,我们必须运行"净使用"。登录到终端服务器时的命令,它运行良好。

现在我们想在win2k3服务器上转移所有这些设置,并希望将其用作终端服务器。现在的问题是当我使用命令Net Use for LPT1时,将msg称为"Access is denied"。

我试图在LPT1端口上映射打印机,如果用户是本地管理员。
打开了对打印机的网络访问权限。但是当我与普通用户这样做时,它没有被映射并给出错误。虽然它在LPT2端口上连接没有错误消息。


Net Use lpt1:\\ Computer_Name\PrinterName

询问用户名所需资源:

尽管提供了具有"管理权限"的任何帐户名和密码。给出此错误消息:

发生了系统错误5.

访问被拒绝。

我也尝试过:

网络使用lpt1:\\computer_name \printer_name /user:Administrator@Domain.Local密码/持久性:是

仍然得到相同的错误消息。我一直收到"系统错误5已发生访问被拒绝"


我不想将用户添加到本地管理员组

Hello Friends,

We are running a Terminal Server in our organization for last one year on Windows 2000 Server. We use this server for our VB Application which supports only DOS Printing. The server is a stand alone server and not member of any domain.

Printing Scenario: we install local printer of the system on lpt2 port and network printer on lpt1. The application has 2 buttons, one as Local Printer and another one is as Print Server. For this we have to run "Net Use" command when login to the Terminal Server and it works very well.

Now we want to shift all these settings on win2k3 server and want to use that as Terminal Server. Now the issue is when I am using the command Net Use for LPT1, getting msg as "Access is denied".

I'm attempting to map a printer on LPT1 Port, this works fine if the user is a local administrator.
Network access to the printer is open. But when I am doing this with normal user it's not getting mapped and giving error. While it's getting connected on LPT2 Port with no error msg.


Net Use lpt1:  \\Computer_Name\PrinterName

asks user name for desired resources:

Despite of giving any account name and password with "Administrative Privilege" giving this error msg:

System error 5 has occurred.

Access is denied.

I have also tried:

Net Use lpt1:  \\computer_name\printer_name /user:Administrator@Domain.Local Password /persistent:Yes

Still getting the same error msg. I keep getting "System Error 5 has occurred   Access Denied"

I do not want to add the users to the local administrator group

以下命令均无效。所有给出系统错误5

None of the commands below have worked. All give the System error 5

同样,如果我将用户添加到本地管理员组,它可以工作,但这不是一个选项。

Again, if I add the user to the local administrator group, it works, but that is not an option.

c:\> Net Use LPT1: file:// Server / Printer004 /user:administrator@domain.lcoal密码/持久性:是

c:\>净使用LPT1:文件://服务器/ Printer004 /用户:domain \ Administrator管理员密码/持久性:是

c:\>网络使用LPT1:文件:// Server / Printer004 /user:domain.local\Administrator密码/持久性:是

c:\>Net Use LPT1:  file://Server/Printer004 /user:administrator@domain.lcoal Password /persistent:Yes
 
c:\>Net Use LPT1:  file://Server/Printer004 /user:domain\administrator Password /persistent:Yes
 
c:\>Net Use LPT1:  file://Server/Printer004 /user:domain.local\administrator Password /persistent:Yes

如果有人帮助我,我将不胜感激。


问候,
Hitesh

I would appreciate if someone helps me out.



Regards,
Hitesh

推荐答案

Hey Hitesh

你试着运行cmd窗口管理员添加打印机,看看会发生什么?
Hey Hitesh

You try just to run the cmd window as admin add the printer and see what happens?


这篇关于无法使用net use命令在lpt1端口上连接网络打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆