English 中文(简体)
Can t add new Redirected Port in Windows 7 after installing RedMon
原标题:

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

最佳回答

Run cmd.exe as Administrator and then run:

rundll32 printui.dll,PrintUIEntry /il

from the elevated cmd.

问题回答

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. ;)

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.

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

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

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.

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_MACHINESYSTEMCurrentControlSetControlPrintMonitorsRedirected PortPortsRPT1:

(Replace your port name in the end.)

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 ...

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

%systemroot%system32printmanagement.msc

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





相关问题
LaTeX font in Postscript document

I am starting off with Postscript, and would like to do something very simple: include a LaTeX symbol within my Postscript document. For example: %! /FontSize 12 def newpath 0 0 moveto ("Hello ...

Weird problem, with ghostscript and pdf files

am using ghostscript to create pdf file from postscript file. My PS file, doesn t have orientation instructions, so when I want to create landscape pdf file, I m using ghostscript to rotate the page. ...

Convert from PDF to Postscript using Java

I am having a J2EE based application, where I am using a reporting tool to generate outputs in PDF format. I need a utility/ tool in Java which can help me convert my PDF file to postscript format so ...

Overlaying or merging multiple .ps files

I have used gmt to create several .ps files of x - y graphs with identical axes. I have several sets of data, each containing between 14 and 20 plots. Each plot is in a separate directory. I would ...

Postscript number of copies

Is there a way to edit a postscript file, to add or increase the number of copies to be printed?

Convert TIFF to PostScript

I m writing .net code (Windows Forms Application) which reads a TIFF image (CMYK) and sends it to printer (using WritePrinter). Before I send it, I need to convert the TIFF image to PostScript. Could ...

Problem - Sending postscript data to printer using ExtEscape

I m trying to send postscript data to the printer using ExtEscape, but the printer didn t respond at all for the following code (1st ExtEscape returned true. 2nd ExtEscape also returned true, but no ...

Generating Postscript using PHP: browser offers to save file

$ps = ps_new(); ps_open_file($ps,$filename); ps_begin_page($ps,$size,$size); ps_set_parameter($ps, SearchPath , /usr/share/texmf-texlive/fonts/afm/bluesky/cm ); $psfont = ps_findfont($ps, "cmr10", "...

热门标签