Can't add new Redirected Port in Windows 7 after installing RedMon

馋奶兔 提交于 2019-11-29 08:55:15

问题


My operating system is Windows 7 32bit. I installed RedMon1.7, Ghostscript 8.71 and GSview 4.9; installations were successful. I went to Add New Local Printer in Windows Devices and Printers, clicked on Create A New Port, and selected Redirected Port from the Type of Port list. Clicked Next and in the Add New Port window I named RPT1: and clicked OK but it says Specified port cannot be added. Operation could not be completed (error 0x00000001)

I tried giving different names to the port, RPT2:, RPT4:, VPport: etc but all gave same result. Disabled Windows Firewall and tried but it continues to give same error, Disabled the Antivirus (Avira) but no change.

What can be preventing windows 7 from adding redirected port?

BTW I was following instructions in this tutorial in order to create a postscript printer.

http://www.stat.tamu.edu/~henrik/GSPSprinter/GSPSprinter.html

Appreciate any ideas or suggestions. Thanks


回答1:


Run cmd.exe as Administrator and then run:

rundll32 printui.dll,PrintUIEntry /il

from the elevated cmd.




回答2:


Go to your Start Menu, Type Print, Right-Click "Print Management", Select "Run as administrator",

In Print Management; Expand "Print Servers" and Select "Ports".

Right-Click in the "Ports" pane (on the right hand side) and Select "Add Port...".

I'd also recommend configuring a Port from Print Management, as opposed to trying to do it in a Printers Properties. ;)




回答3:


Adam Reed describes a workaround in his blog: http://borntoidentify.blogspot.com/2010/09/configuring-virtual-printer-using.html Not very comfortable, but works for me ...

EDIT: This link appears broken, but here's the content: https://web.archive.org/web/20120628120209/http://borntoidentify.blogspot.com/2010/09/configuring-virtual-printer-using.html

The gist is that under Win7, you need to run explorer with elevated rights. This can be done using another browser, or, as mentioned in the comments on the original post:

  1. Open a CMD window by right clicking and running as administrator
  2. Kill the process explorer.exe from the task manager
  3. Run explorer.exe from the command prompt window, now as an administrator.

Be very careful when running explorer as an administrator.




回答4:


You need to enable Admin mode OR log with the Admin account!

This is cause by the new Vista/Win 7 security system.




回答5:


Try reseting the firewall (Windows 7) (be warned tho, the firewall will reset to the default setting) *go to Control Panel *go to Windows Firewall *on the left choice pick "Restore Defaults"

It works for me, i hope it works for you.




回答6:


F3lix's rundll32 method works but after you've created the port you most probably would need to configure its settings. Elsewhere in the net there are instructions to open Port management as Administrator, but in Windows 7 Home that seems to be very much impossible. One can only view the virtual port settings. The only workaround I found is to edit registry directly with the Registry editor at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Redirected Port\Ports\RPT1:

(Replace your port name in the end.)




回答7:


It seams to be tricky. In my case it only works, after creating an new User account with the name "admin" / group " Administratoren" (de). Before with my real Nickname User "Nick.." / group "Administratoren" (de) it dosent work´. Takes several hours to discover ...




回答8:


Accepted solution did not work for me...I found an other command line that worked well (I'm on windows 10):

%systemroot%\system32\printmanagement.msc

It opens the print management in administrator mode, and I was able to create the port with no problems.



来源:https://stackoverflow.com/questions/3433382/cant-add-new-redirected-port-in-windows-7-after-installing-redmon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!