Printer install driver issues. I am trying to learn parts of the Print. Use IE for best view: http:// http:// page missing @ microsoft.com. · We are setting up a VDI environment using VMware View. Each user has an additional network printer that is installed that they use as their default printer. This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages). UI. dll interface and I am encountering some issues. I have found that the Print. UI. dll interface seems to encounter errors with certain driver sets (particularly PLC6 drivers from Xerox and almost anything Lanier from. I have encountered in my testing). For kicks I have decided to add the drivers to the Pn. P package (via pnputil. Once the driver was added to the Pn. P settings, I attempted to manually add the printer the normal way and confirmed that the driver I. I deleted that printer and then ran the printer install using the driver location in the System. Driver. Store\File. Repository. L location as the driver . I encountered an error stating a suitable print driver. System Center Configuration Manager and FastTrack FastTrack can interact with System Center Configuration Manager (SCCM) by injecting scripts into Task Sequences. See below: Test 1: Driver package located at C: \drivers\disk. LANSETUP. inf (I AM able to navigate to this folder and use this exact file for a standard printer install with driver not pre- installed. Run command to automate printer install: rundll. Print. UIEntry /if /b "Printer Name" /f c: \drivers\disk. LANSETUP. inf /r "Port Name" /m "RICOH Aficio MP C4. PS"Receive Error: Operation could not be completed (error 0x. Windows cannot locate a suitable printer driver. Contact your administrator for help locating and installing a suitable driver. Test 2: Add driver found at c: \drivers\disk. LANSETUP. inf to Pn. P driver setpnputil. LANSETUP. inf. New folder is created due to the above command at C: \Windows\System. Driver. Store\File. Repository\lansetup. Attempt manual setup to ensure that driver is now listed in Windows Driver set, PS driver is now appearing as preinstalled driver. Attempt command: rundll. Print. UIEntry /if /b "Printer Name" /f C: \Windows\System. Driver. Store\File. Repository\lansetup. LANSETUP. inf /r "Port Name" /m "RICOH Aficio MP C4. PS"Error Received: Operation could not be completed (error 0x. Windows cannot locate a suitable printer driver. Contact your administrator for help locating and installing a suitable driver. Manual install to check driver installation is successful. The short of it: Any ideas as to why Windows is providing random errors installing drivers? In some cases downloading a different driver works, but in the case of this Lanier, EVERY driver has the same issue. This seems to be a widespread yet random issue that is entirely. Disclaimer: This has been done on Windows 7 Enterprise. I am the network admin using a local admin account attempting to install the printer locally. I know there are ways to easily deploy printers with GPO and print servers, but a recent special circumstance has given. Remove offline printers using vbscript. I got a question from Mark this week: “Hi Steve, Love your newsletter, keep sending me the good stuff ? I have a question for you. I was wondering if there was a way to delete printers that were offline from a script. This would allow me to clean up dead printers without going around to each computer. My google fu has not been able to turn anything up. Thanks!”Excellent question Mark. It took me quite a while to find it, but there is a property in the Win. Printer object. It is called Extended. Printer. Status. I was able to figure out through experimentation that if Extended. Printer. Status is equal to 7, then the printer is offline. With that info in hand, we can build a simple vb- script that will delete the printer if it is offline: set obj. WMIService = Get. Object("winmgmts: " & "{impersonation. Level=impersonate}!\\.\root\cimv. Installed. Printers = obj. WMIService. Exec. Query ("Select * from Win. Printer where Extended. Printer. Status = 7")For Each s. Printer in s. Installed. Printerss. Printer. Delete_Next. Notice the underscore in the delete method – that is needed. Just a little twist added by Microsoft to keep you on your toes. They roll that way. To call it from your script, use the cscript. A good example would look like this: %windir%\system. Finally – Don’t leave this thing in place all the time. Once you think enough users have logged in and all is cleaned up, I would suggest removing it from their logon script. Why? What happens when one of your main printers goes offline? Yep, those calls start rolling in about a missing printer. If you are having trouble using cut and paste from the browser, here is a link to the script on our website: offline_printer_cleanup. Make sure to rename to . One more thing…Subscribe to my newsletter and get 1. Click Here to get your free tools.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |