More information is available at Microsoft's TechNet under Q189105. Download Microsoft's PrintUI.DLL User's Guide and Reference for more detailed, task oriented explanations of command line options. Usage: RUNDLL32.EXE PRINTUI. Date/time applet, Time Zone tab: RUNDLL32 SHELL32.DLL,Control_RunDLL TIMEDATE.CPL,@0,1: Desktop applet, Screensaver tab: RUNDLL32 SHELL32.DLL,Control_RunDLL DESK.CPL,@0,1: Network applet, Protocols tab: RUNDLL32 SHELL32.DLL.
Hello Thomas Francis, Welcome to Microsoft Answers Forum! I would suggest you to turn on network discovery files and printer and public folders sharing’s and check whether it helps. Please follow the steps below. I looked up where you can use the rundll32 printui.dll,PrintUIEntry command to script a connection to a networked printer, like this: rundll32 printui.dll,PrintUIEntry /in /n \\servername\printername It works fine. But now I'm. RunDLL32.exe. Run a DLL program. This command is available on all version of Windows from Win95 onwards, but the DLL's and options available do vary considerably. Many options are case sensitive. Syntax RUNDLL32.EXE. You'd want to add a per system printer, not a per user one. Make sure the account you run this on has local admin rights on the remote system. You don't put in the domain in front of the computer name. RUNDLL32 PRINTUI.DLL.
![Rundll32 Printui.Dll Install Network Printer Rundll32 Printui.Dll Install Network Printer](http://img.photobucket.com/albums/v92/tlman12/complete-1.png)
Use rundll. 32 printui. Print. UIEntry command to disconnect a printer? Did you take a look at the other switches by running it with a "/?" ? I'm guessing /dn is the one you need to use. Usage: rundll. 32 printui.
Print. UIEntry [options] [@commandfile] /a[file] binary file name /b[name] base printer name /c[name] unc machine name if the action is on a remote machine /dl delete local printer /dn delete network printer connection /dd delete printer driver /e display printing preferences /f[file] either inf file or output file /ga add per machine printer connections /ge enum per machine printer connections /gd delete per machine printer connections /h[arch] driver architecture one of the following, Alpha | Intel | Mips | Power. PC /ia install printer driver using inf file /id install printer driver using add printer driver wizard /if install printer using inf file /ii install printer using add printer wizard with an inf file /il install printer using add printer wizard /in add network printer connection /j[provider] print provider name /k print test page to specified printer, cannot be combined with command when installing a printer /l[path] printer driver source path /m[model] printer driver model name /n[name] printer name /o display printer queue view /p display printer properties /q quiet mode, do not display error messages /r[port] port name /s display server properties /Ss Store printer settings into a file /Sr Restore printer settings from a file Store or restore printer settings option flags that must be placed at the end of command: 2 PRINTER_INFO_2 7 PRINTER_INFO_7 c Color Profile d Printer. Data s Security descriptor g Global Dev. Mode m Minimal settings u User Dev.
Mode r Resolve name conflicts f Force name p Resolve port /u use the existing printer driver if it's already installed /t[#] zero based index page to start on /v[version] driver version one of the following, Windows 9. Windows NT 3. 1 | Windows NT 3. Windows NT 3. 5. 1 | Windows NT 4. Windows NT 4. 0 or 2. Windows 2. 00. 0 /w prompt the user for a driver if specified driver is not found in the inf /y set printer as the default /Xg get printer settings /Xs set printer settings /z do not auto share this printer /Z share this printer, can only be used with the /if option /?
Examples: Run server properties: rundll. Print. UIEntry /s /t. Run printer properties: rundll. Print. UIEntry /p /n\\machine\printer.
Run add printer wizard localy: rundll. Print. UIEntry /il Run add printer wizard on \\machine: rundll. Print. UIEntry /il /c\\machine. Run queue view: rundll. Print. UIEntry /o /n\\machine\printer. Run inf install: rundll. Print. UIEntry /if /b "Test Printer" /f %windir%\inf\ntprint.
AGFA- Accu. Set v. Run add printer wizard using inf: rundll.
Print. UIEntry /ii /f %windir%\inf\ntprint. Add per machine printer connection: rundll.
Print. UIEntry /ga /c\\machine /n\\machine\printer /j"Lan. Man Print Services"Delete per machine printer connection: rundll.
Print. UIEntry /gd /c\\machine /n\\machine\printer. Enumerate per machine printer connections: rundll. Print. UIEntry /ge /c\\machine. Add printer driver using inf: rundll.
Print. UIEntry /ia /c\\machine /m "AGFA- Accu. Set v. 52. 3" /h "Intel" /v "Windows 2.
Remove printer driver: rundll. Print. UIEntry /dd /c\\machine /m "AGFA- Accu. Set v. 52. 3" /h "Intel" /v "Windows 2. Set printer as default: rundll.
Print. UIEntry /y /n "printer"Set printer comment: rundll. Print. UIEntry /Xs /n "printer" comment "My Cool Printer"Get printer settings: rundll. Print. UIEntry /Xg /n "printer"Get printer settings saving results in a file: rundll. Print. UIEntry /f "results. Xg /n "printer"Set printer settings command usage: rundll. Print. UIEntry /Xs /n "printer" ? Store all printer settings into a file: rundll.
Print. UIEntry /Ss /n "printer" /a "file. Restore all printer settings from a file: rundll. Print. UI /Sr /n "printer" /a "file. Store printer information on level 2 into a file : rundll. Print. UIEntry /Ss /n "printer" /a "file. Restore from a file printer security descriptor: rundll. Print. UIEntry /Sr /n "printer" /a "file.
Restore from a file printer global devmode and printer data: rundll. Print. UIEntry /Sr /n "printer" /a "file. Restore from a file minimum settings and resolve port name: rundll.
Print. UIEntry /Sr /n "printer" /a "file.