Prndrvr.vbs Error 123
Contents |
(עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) HomeWindows Server 2012Windows Server 2008 R2Windows Server 2003LibraryForums Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by:
Prndrvr.vbs Win32 Error Code 87
Prndrvr.vbs Windows Server > Print/Fax Question 0 Sign in to vote unable to add printer driver win32 error code 87 I am trying to install a print driver to a remote machine...I have already copied the drivers to the remote machine so they are local to that machine. When I run the command from my workstation, it installs fine, but when I put in the option to remotely do it, I receive the followingUnable to add printer driver Lexmark E250d XL Win32 error code -2146762496cscript c:\windows\system32\prndrvr.vbs -a -m "Lexmark E250d XL" -v "3" -e "Windows NT x86" -h "C:\Printers\Lexmark\250dn" -i "C:\Printers\Lexmark\250dn\LMABJC40.inf" -s "10.100.3.56" -u "administrator" -w "password"Any ideas what the code is? I couldnt find it anywhere. In the directory path (-i) if I put the \ on the end, I receive error code 123? I see this is: The filename, directory name, or volume label syntax is incorrect.ERROR_INVALID_NAME.Any ideas?Thanks! Thursday, April 10, 2008 7:01 PM Reply | Quote Answers 0 Sign in to vote Hi, I have successfully installed printer driver from remote machine by using "Prndrvr.vbs". Here is my environment: Remote server where I will install driver : Windows server 2008 32 bit Local machine: Windows Vista 32 bit Driver Name: "HP LaserJet 1100" Afterwards, I extracted this drive files under my local path "c:\laserJet517". Here is my command: C:\Windows\System32\Printing_Admin_Scripts\en-US>cscript prndrvr.vbs -a -m "HP LaserJet 1100" -v 3 -e "Windows NT X86" -h "C:\LaserJet517\2k_xp" -i "C:\LaserJet517\2k_xp\hp201ip5.inf" –s "157.16.x.x" –u "157.16.x.x\administrator" –w "xpasswordx" Please note the Driver Name that follows with –m option must exactly math with the driver we are going to install. You can simply open .INF file to obtain this name or refer to printer documentation. My first test fail
have copied the drivers to the remote machine. Below ismy code:cscript c:\windows\system32\prndrvr.vbs -a -m "Lexmark E250d XL" -v "3" -e"Windows NT x86" -h "C:\Printers\Lexmark\250dn" -i"C:\Printers\Lexmark\250dn\LMABJC40.inf" -s "10.100.3.56" -u "administrator"-w "password"If I run the code like this for local machine (of course I dont have thelast three options in the script for a local machine), the code works andinstalls the printer. If I run it for a remote machine, I receive thefollowing message:Unable to add printer driver Lexmark E250d XL Win32 error https://social.technet.microsoft.com/Forums/windowsserver/en-US/a51715eb-f1a1-47ea-b285-0e67d221dcee/prndrvrvbs?forum=winserverprint code -2146762496If I put a \ on the end of the directory (-i) I receive Win32 error code 123.Any ideas on what is going on?Thanks! Alan Morris [MSFT] 2008-03-31 16:48:54 UTC PermalinkRaw Message E:\>winerror 123123 ERROR_INVALID_NAME <--> 0xc0000033 STATUS_OBJECT_NAME_INVALIDfor -u option use machinename\administrator--Alan MorrisWindows Printing TeamSearch the Microsoft Knowledge Base here:http://support.microsoft.com/search/?adv=1This posting is provided "AS http://microsoft.public.windows.server.scripting.narkive.com/gb1OAmwb/prndrvr-vbs IS" with no warranties, and confers no rights.Post by MadKovalchuk17I am trying to remotely install a print driver via prndrvr.vbs and I keepgetting an error. I have copied the drivers to the remote machine. Below iscscript c:\windows\system32\prndrvr.vbs -a -m "Lexmark E250d XL" -v "3" -e"Windows NT x86" -h "C:\Printers\Lexmark\250dn" -i"C:\Printers\Lexmark\250dn\LMABJC40.inf" -s "10.100.3.56" -u"administrator"-w "password"If I run the code like this for local machine (of course I dont have thelast three options in the script for a local machine), the code works andinstalls the printer. If I run it for a remote machine, I receive theUnable to add printer driver Lexmark E250d XL Win32 error code -2146762496If I put a \ on the end of the directory (-i) I receive Win32 error code 123.Any ideas on what is going on?Thanks! e***@gmail.com 2008-04-22 18:36:16 UTC PermalinkRaw Message I am still getting the error message even using the solution you gave.I appreciate your feedback/suggestions/help!Thanks!On Mar 31, 12:48 pm, "Alan Morris [MSFT]"Post by Alan Morris [MSFT]E:\>winerror 123123 ERROR_INVAL
prncnfg.vbs -t -s wgan-xw1.domain.com -p "Max 4240 printer" -r IP_10.13.128.53 Running it as an administrator, I get the following message: Unable to get configuration for printer Max 4240 printer Error 0x80041002 Not found Operation GetObject Provider CIMWin32 Description http://www.pcreview.co.uk/threads/vbs-to-configure-printer-to-remote-machine.3155959/ Win32 error code Any help or suggestions will be greatly appreciated! Thanks Guest, Jul 10, 2007 #1 Advertisements Guest Guest Responses will not likely be forthcoming untill you explain exactly what you are trying to do. Giving an error message without an https://books.google.se/books?id=O_hnDWNbOz0C&pg=PA677&lpg=PA677&dq=prndrvr.vbs+error+123&source=bl&ots=I_MOo-Tj6F&sig=uxjDObF6CT47XCNZiRrPpJd1F3k&hl=en&sa=X&ved=0ahUKEwiQ_5q6xejPAhUGdCwKHdrXDQsQ6AEIWDAI explanation is useless for anyone to be able to assist you. -- XP - WNP Today is the first day of the rest of your life. "Archi3" wrote: > Hi, > My script is as follows: > cscript prncnfg.vbs -t -s wgan-xw1.domain.com win32 error -p "Max 4240 printer" -r > IP_10.13.128.53 > > Running it as an administrator, I get the following message: > Unable to get configuration for printer Max 4240 printer Error 0x80041002 Not > found > Operation GetObject > Provider CIMWin32 > Description > Win32 error code > > Any help or suggestions will be greatly appreciated! Thanks Guest, Jul 17, 2007 #2 Advertisements Guest Guest Thanks for the message. I figured out that I cannot add printer to a remote machine using the command prncnfg.vbs. win32 error code I had to use prnmngr.vbs However, I am faced with another error message: Unable to add printer HP printer Error 0x80041001 Generic failure Operation PutInstance Provider Win32 Provider Description The printer driver is unknown. Win32 error code 1797 Could anyone pls. advise - thanks! "Byte" wrote: > Responses will not likely be forthcoming untill you explain exactly > what you are trying to do. Giving an error message without an > explanation is useless for anyone to be able to assist you. > -- > XP - WNP > Today is the first day of the > rest of your life. > > > > "Archi3" wrote: > > > Hi, > > My script is as follows: > > cscript prncnfg.vbs -t -s wgan-xw1.domain.com -p "Max 4240 printer" -r > > IP_10.13.128.53 > > > > Running it as an administrator, I get the following message: > > Unable to get configuration for printer Max 4240 printer Error 0x80041002 Not > > found > > Operation GetObject > > Provider CIMWin32 > > Description > > Win32 error code > > > > Any help or suggestions will be greatly appreciated! Thanks Guest, Jul 17, 2007 #3 Alan Morris [MSFT] Guest Install the driver using prndrvr.vbs I'll help you a bit more so you don't have to post again. Add the port using prnport.vbs so prnport.vbs Adds or configures a port prndrvr.vbs Used to add signed drivers only. unsigned drivers cannot be installed using WMI provider. prnmngr.vbs Creates and deletes printers prncnf
från GoogleLogga inDolda fältBöckerbooks.google.se - Many IT professionals have long considered the practice of troubleshooting to be more of an art than a science. However, with the right methodology, anyone can systematically analyze and repair problems affecting an individual computer or an entire network. All it requires is an understanding of the...https://books.google.se/books/about/Troubleshooting_Microsoft_Technologies.html?hl=sv&id=O_hnDWNbOz0C&utm_source=gb-gplus-shareTroubleshooting Microsoft TechnologiesMitt bibliotekHjälpAvancerad boksökningSkaffa tryckt exemplarInga e-böcker finns tillgängligaAddison-Wesley ProfessionalAmazon.co.ukAdlibrisAkademibokandelnBokus.seHitta boken i ett bibliotekAlla försäljare»Handla böcker på Google PlayBläddra i världens största e-bokhandel och börja läsa böcker på webben, surfplattan, mobilen eller läsplattan redan idag.Besök Google Play nu »Troubleshooting Microsoft Technologies: The Ultimate Administrator's Repair ManualChris WolfAddison-Wesley Professional, 2003 - 705 sidor 0 Recensionerhttps://books.google.se/books/about/Troubleshooting_Microsoft_Technologies.html?hl=sv&id=O_hnDWNbOz0CMany IT professionals have long considered the practice of troubleshooting to be more of an art than a science. However, with the right methodology, anyone can systematically analyze and repair problems affecting an individual computer or an entire network. All it requires is an understanding of the technologies involved, knowledge of the available tools, and insight into the most common system and application issues. "Troubleshooting Microsoft Technologies" is the first complete guide to troubleshooting the vast interrelationships of Microsoft network technologies. This book begins by introducing readers to the fundamentals of networks and troubleshoot