Set up a printer from command line numbers

I tried to understand why my arguments do not work. Initially I created a file with the commands PrinterUIEntry .bat, but I got an error "Invalid Argument". I went to the cscript method and I'm still not understanding why he get errors on the install printer driver and install. The user of the command file created will be NON-TI users. I want to send a package with them with printer drivers, unzipped and installed using the .inf file. I can't seem to make it work properly and don't want to waste any more time trying to figure out what's wrong. Any help would be appreciated. Thank you!

= First method tried =.

rundll32 printui.dll /ia/c\\L638/l "C:\Temp\NC Print Drivers\dellopd_A06\dellopd.inf"

-Error of read "invalid Arguments".

rundll32 printui.dll/if /f "C:\Temp\dellopd_A06\dellopd.inf" /c\\L638 / b "Dell 5210n" / u/r 'IP_192.168.10.157 '.

-Error of read "invalid Arguments".

= Current method =.

cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnport.vbs - a - r IP_192.168.10.157 h 192.168.10.157

-This creates the great port, no error

cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prndrvr.vbs - a-i 'C:\Temp\dellopd_A06\dellopd.inf' h 'C:\Temp\dellopd_A06 '.

-Error indicates "unable to add the printer error 0 driver x 80041008.

cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs - a "Dell 5210n" PEI - r "192.168.10.157".

-Error indicates "unable to add the parameter not valid printer Dell 5210n error 0 x 80041008."

Operation PutInstance

CIMWin32 provider

Description

Win32 error code.

Hello
 
Thanks for posting your query in Microsoft Community.
 
According to the description of the problem, I understand you are trying to install the printer drivers create a .bat with the command-line PrinterUIEntry file.

The problem you are having is better suited in the Microsoft TechNet forum, we have a dedicated team to help you with such questions. I suggest you send the same question in the Microsoft TechNet forum for more help on this issue.
http://social.technet.Microsoft.com/forums/en-us/home

Tags: Windows

Similar Questions

  • I need to increase the memory available to an application from command line (DOS window)

    At the cmd prompt, I perform the mem command and get the following. I have 3gig of ram but the mem says I have 0 contiguous extended memory available? Is there a way to access this memeory?

    memory 655360 bytes total conventional
    655360 bytes available in MS-DOS mode
    578240 largest executable program size

    1048576 bytes total contiguous extended memory
    0 bytes available contiguous extended memory
    941056 bytes available XMS memory
    MS-DOS resident in high memory area

    This solution does not work, thanks for the reply but. I found that Vista locks going to the Command.pif running cmd from Windows users, so even if you terminate the process cmd it active again. I also found a mistake in one of the sons were he mentions emm396.exe as a way to check the emm on Vista memory. My Home Premium installation isn't emm386.exe.

    Anyway once again don't thanks for the help no wonder that many stores do not use Vista. There are a number of development tools that run from command line.

  • How can I print spare part in a PDF file from command line?

    For my organization, we have a lot of .pdf files, each of which contains several .pdf files in their midst as attachments (i.e. a single .pdf file that contains other .pdf files). I know that I can print a .pdf file with the following command via the command prompt.

    "C:\Program Files (x 86) \Adobe\Acrobat ' / n/t 'filetoprint.pdf' '\\printerserver\printername '.

    Although this example shows the PDF in question, it does print all attachments in the file 'filetoprint.pdf '. I've scoured google and these forums, but I did not seem to find a switch or anything that would allow me to do. Does anyone have any suggestions? It must be done by the command line. I'd appreciate any help! Thank you!

    ~ Justin

    After much research, I found the answer. Start with, rather than using a .bat file, I used the wizard of the Action to set up a script. Then, I put the script to process all the files in a given folder. I changed the folder that will contain all the files in .pdf (including attachments) that I wanted to deal with. Then, I wrote the following javascript code:

    var d = this.dataObjects;

    pp var = this.getPrintParams ();

    pp.interactive = pp.constants.interactionLevel.silent;

    pp.printerName = "\\\printerserver\\printer";

    This.Print (pp);

    var oDoc;

    for (var i = 0; i)< d.length;="">
    {

    oDoc = this.openDataObject (d [i] .name);

    oDoc.print (pp);

    }

    Yes, it isn't command line as I originally wanted, but there is still work for what I need to do. It looks like you can trigger an action from a VBA Macro or something, even though at this point, I think it's more trouble that it's worth. in any case, I hope this helps anyone who has the same problem!

  • Is there a setting from command line for Windows Media Player?

    Could someone tell me please in the right direction for a set of command line for wmplayer settings?
    I use... .Wmplayer /play /playlist pA.wpl as an automatic start and play line RUN.
    Player starts and displays a list of PA on the screen but does not play.
    If I use... .Wmplayer /play /C:\name.mp3 then, it works very well.
    Thank you
    Brian Taylor

    First of all, /play is not a supported parameter, and you should not put a slash in front of the file names.

    To launch WMP and let him play a playlist, simply specify the name of the file to the playlist on the command line, for example:

    Wmplayer PA.wpl

    The /playlist parameter is only for play playlists that are in the library and does not have a file name of playlist, but the * name * of the playlist in the library, without extension or directories.

  • Windows of different sizes from command line

    Hello

    I'm running Firefox and - width - height of command line options. The problem I have is that these settings are ignored if a Firefox window is already open. In this case, all of the following windows are open with the size of the first (original) window. It does not matter what I type for width and height. These parameters are used only for the first window, when Firefox is actually started.

    I've mitigated it wrong before with javascript used in web pages to resize the window to the document load event. Now I have to upgrade to the latest version and resizeTo does not work on windows that are not open via window.open.

    What are the options I have to open multiple windows of Firefox with different sizes? They all use the same profile.

    We use a very specific environment, closed and controlled with a web server and not internet access. There was no need for update of Firefox 4. Now, we want to upgrade, but this change in functionality prevents us from the upgrade. Because the computers of our customers are on CentOS 5, we would be upgrading to Firefox 17 which is part of the standard CentOS 5 distribution.

    I wrote a bash script that made a list of the windows, firefox lance made a list once again. It then searches the differences in the lists of before and after opening firefox. In the end, the script uses wmctrl to change the size of the window which were found also recently opened. There is a small chance that some other window might appear while the opening of firefox and it will be be reduced too. However, in our case, this probability is very low and it is not worth.

    Here is the script which takes 3 parameters: width, height, URL.

    #!/bin/bash
    
    diff(){
      awk 'BEGIN{RS=ORS=" "}
           {NR==FNR?a[$0]++:a[$0]--}
           END{for(k in a)if(a[k])print k}' <(echo -n "${!1}") <(echo -n "${!2}")
    }
    
    window_count=$(wmctrl -l | wc -l)
    
    windows=()
    
    wmctrl -l > output
    
    exec 0<output 
    
    while read id type machine name
    
    do
    
      windows=("${windows[@]}" "$id")
    
    done
    
    # width and height in this call are ignored if some other firefox window is already open
    
    /usr/bin/firefox -P profile -width $1 -height $2 -new-window $3 &
    
    new_window_count=$window_count
    
    while [ "$window_count" -eq "$new_window_count" ]
    
    do
    
      #echo waiting...
    
      sleep 1
    
      new_window_count=$(wmctrl -l | wc -l)
    
    done
    
    new_windows=()
    
    wmctrl -l > output
    
    exec 0<output "$id")="" "${differences[@]}"="" $i="" -e="" -i="" -r="" 0,-1,-1,$1,$2="" <="" differences="($(diff" do="" done="" for="" i="" id="" in="" machine="" name="" new_windows="("${new_windows[@]}"" new_windows[@]))="" pre="" read="" type="" while="" windows[@]="" wmctrl="">
    
    done
    
    I had to do some tweaking in the script to fool the HTML editor. Some formatting of text is performed, that is not source friendly. That is why the script might look formatted strangely.
    
    </output>
  • How do you access iCloud drive from command line?

    I'm on OS 10.10.5.  On any Finder window, I see iCloud drive listed (with subfolders, some created by me, others not).

    How can I look at them from the point of view "unix"?  That is, from the command line.  When I do:

    $ sudo find /-name iCloud\ in car

    He finds a /System/Library/PrivateFrameworks/CloudDocsDaemon.framework/Versions/A/Resource s/iCloud Drive Drive.app/Contents/MacOS/iCloud file, which is an 'executable x86_64.  I'm afraid to run it from the command line.

    Can someone please tell me how I can watch some entries in folder under "iCloud Drive" via command line?

    Thank you.

    Tena

    I can access m iCloud drive of documents from the Terminal by entering

    CD ~/Library/Mobile\ Documents/com ~ apple ~ CloudDocs.

    This will set the current directory to the root of the drive to iCloud.

  • Windows 7 Defrag from command line does not work

    We are running Windows 7 in a virtualized environment. When you run windows defrag hourly use of the command line, it does not work. The order that I will execute as administrator is

    C:\Windows\System32>defrag/c

    Microsoft Disk Defragmenter
    Copyright (c) 2007 Microsoft Corp.

    It displays the above message and leaves back to the command prompt. However if I run the defrag C: command it does not. Defragmentation from the GUI works so as long as both drives (C: and system reserved) are selected and when I click on defragment drives, works very well.

    I am concerned about defrag from the Task Scheduler with the command ' defrag/c' (self programmed to help set up the calendar... from Disk Defragmenter) does not work and the system never gets defragmented automatically.

    This only happens with some of the windows virtual machine 7 we have.

    There are no entries in the event log that point to defragmentation (using the Task Scheduler). Anything can happen on the ideas?

    Hello Sebastian,.

    Thanks for posting your question on the Forum of the Microsoft community.

    The question will be better suited to the audience of it professionals on the TechNet forums.

    I would recommend posting your query in the TechNet Forums.
     
    TechNet Forum
    http://social.technet.Microsoft.com/forums/en-us/home?category=w7itpro

    Thank you

  • How to access the disk HARD recovery from command line?

    Hello.

    I have a little trouble with my toshiba Satellite. My system crashed and I forgot to create the system recovery dvd.
    I can't access the "Toshiba HDD Recovery" when I start from another DVD Windows-7, but io accesses the recovery of HARD drive on drive D: with the command line. Is it possible to start the drive HARD recovery manually?

    Kind regards
    Marco

    I know something like this isn't possible.
    If you did not create a recovery disk and you cannot start the HDD recovery procedure, you can order the new Arvato recovery disk

  • NIMAX generate a report from command line

    Dear users,

    I would like to generate report MAX ("MAX generate Report.vi') command line. Nimax.exe has this ability, or do I have to write a wrapper to vi?

    Kind regards.

    Hello

    It is possible to do it from the command line. You can see how to do this in the document:

    Documenting the Measurement & Automation Explorer (MAX) Configuration information

    http://digital.NI.com/public.nsf/allkb/271F252B4EF0A2E0862570E70056A1E4?OpenDocument

    Kind regards

    Dawid

  • Request signatures (sign your App) from command line

    Is there a way to "request for signatures" from the command line?

    I'm doing my deployment during development much easier and without having to enter my password of signature.

    java-jar "C:\Program research in Motion\BlackBerry JDE 4.6.0\bin\SignatureTool.jar" - a - c - p

    should work just fine.

  • VMware Player 6.0.1: Howto from command line, for example, where is vmrun?

    Hello

    I installed VMware Player 6.0.1 on openSUSE 3.1 by using the serial number that I received with Fusion Professional 6.0.2.

    Virtual machines spin if they are started through the user interface, but I would like first of all to them via command line.

    Question: How can I start virtual machines from the command line? I've read that vmrun must do the job but I can't find this command.

    Did a search on my system: no file vmrun lie.

    Any idea where I get vmrun of?

    Thanks for your help,

    Fred

    It is installed separately and is available under the tab drivers & tools of the VMware Player download page.

  • portablize an application from command line

    I want to use vmware to portablize this application
    This application includes:
    1. an exe file
    2.a batch file
    the batch file uses the command line to run the exe file
    How can I portablize this project?
    I made a simple pre and post scan but the vmware does not capture anything on the execution of the batch file, but just the exe file
    My problem is mainly to set up the file "Package.ini.
    Help, please...

    for example, the batch file contains:


    the echo of my text

    the entered value 1 =
    Set /P INPUT1 = % = %

    If INPUT1% equ 215%

    a.exe

    the batch file captures the entry and if 215 is entered, it starts a.exe

    Please change the first lines of package.ini as below (do not add to the bottom of the package.ini)

    [a.exe]
    Source=%SystemSystem%\COMMAND.com
    CommandLine=%SystemSystem%\COMMAND.COM/c h.bat
    ReadOnlyData = Package.ro.tvr
    Project WorkingDirectory=%drive_C%\My

    Make sure that the h.bat file is available under %drive_C%\My project folder.

    If this isn't the case, copy the file manually and rebuild the package.

  • Take the input from command line

    Hello

    I have a sql file with multiple accept statements.
    I would like to run this script from the DOS command line and provide the script with values for declarations to accept it.
    How can I do this? (I don't want to change the sql for this file)

    Kind regards
    HJH

    I have a sql file with multiple accept statements.
    I would like to run this script from the DOS command line and provide the script with values for declarations to accept it.
    How can I do this? (I don't want to change the sql for this file)

    Create the text file and put a value per line in good condition. For example, you have the script following script.sql:

    accept V1 char prompt 'Enter value for V1:'
    accept V2 char prompt 'Enter value for V2:'
    
    prompt Your input : &V1 &V2
    
    exit
    

    Text file values.txt might be the following:

    ABC
    DEF
    

    Then, use the following syntax:

    sqlplus.exe /nolog @script.sql < values.txt
    
  • I wanted to disable Windows update service from command line. can you help me please on this?

    I wanted to disable Windows Update service by command line can help me on this.

    Hi Vikas Sharma,

    We do not recommend to disable the Windows Update service.

    However, you can try following step below:

    > In the Windows command line type the following command, and then press ENTER:

    > start wuauserv sc config = disabled

    Please let us know if that helps.

  • W530 - activate the camera from command line?

    Hi guys,.

    I searched for a way to activate and capture and image of the camera integrated in the command line. Does anyone know how to do? I have a W530 with Windows 7 64 bit.

    Thank you!

    Lenovo is not a tool like this, but I did a quick search on google and found a few utilities in the sample and the code:

    http://batchloaf.WordPress.com/2011/04/06/Snapz-a-command-line-cam-image-grabber/

Maybe you are looking for