Link to home
Start Free TrialLog in
Avatar of Kiwi-User
Kiwi-User

asked on

Installing IP Printer with rundll32 printui.dll

Hi,

I have a script that runs at startup via an Acdive Directory Group Policy Object. I have ran this script on one of my network computers without an issue, but on other computers I either error's "Failedto create specified port" or "The arguments are invalid".
rundll32 printui.dll,PrintUIEntry /if /b "AKAIR-NP01" /f \\AKAIR-SERVER\netlogon\drivers\AKAIR-NP01\fx6vaie.inf /r "IP_192.168.131.60" /m "FX DocuCentre-II C3000 PCL 6" /Z

Open in new window

Avatar of Kiwi-User
Kiwi-User

ASKER

I have read the Microsoft Guide on PrintUI.dll at http://download.microsoft.com/download/8/2/c/82cffcfa-56f6-4fc3-bfa5-80cd84793871/PrintUIUsersGuide.doc and modified my syntax slightly, it all seems to be correct acording to the guide, but I still get the error popup "Printers: The arguments are invalid".

Any help would be appreciated.
rundll32 printui.dll PrintUIEntry /if /b "AKAIR-NP01" /f "\\AKAIR-SERVER\netlogon\drivers\AKAIR-NP01\fx6vaie.inf" /r "IP_192.168.131.60" /m "FX DocuCentre-II C3000 PCL 6" /u /z

Open in new window

It seems the problem is with creating the IP Port

/r "IP_192.168.131.60"

If the printer is installed manually and then removed then the script works, so its just not creating the IP Port correctly / at all.
ASKER CERTIFIED SOLUTION
Avatar of Kiwi-User
Kiwi-User

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial