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

9

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

windows-7
postscript
ghostscript
printers
redmon
asked on Stack Overflow Aug 8, 2010 by Zerone

8 Answers

16

Run cmd.exe as Administrator and then run:

rundll32 printui.dll,PrintUIEntry /il

from the elevated cmd.

answered on Stack Overflow Sep 7, 2011 by f3lix
4

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

answered on Stack Overflow Sep 27, 2013 by bu11etpr00f
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.

answered on Stack Overflow Sep 30, 2010 by user462776 • edited Jun 27, 2014 by Josiah
2

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

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

answered on Stack Overflow Oct 7, 2010 by Tensor
1

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.

answered on Stack Overflow Nov 16, 2012 by Maya Dewi Fortuna
1

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

answered on Stack Overflow Dec 5, 2013 by loop
1

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

answered on Stack Overflow Feb 2, 2014 by user3262859 • edited Feb 2, 2014 by David
1

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.

answered on Stack Overflow Jul 7, 2016 by Eradash

User contributions licensed under CC BY-SA 3.0