Installing Duplexer from a Script

Hi all,
I have close to 300 HP Printers of various types, many of which have Duplexer installed (Physically), but Duplexer is set to Not Installed on the Device Settings tab. I need to create a script that will flip that bit on all of the printers so I can set the Preferences to Duplex (Which I already have the script for) Does anyone have a script that will do this? Is it a WMI Property? Is it a Registry setting?
Thanks
Carl

Hello,
Did you ever figure out how to do this? I'm working on the same scenario. My next step was to copy the /usr/libexec/oah/ folder to another mac and figuring out how to add an entry to /Library/Receipts/InstallHistory.plist. Please let me know.
Thanks!

Similar Messages

  • Installing Rosetta from a script

    Hi,
    I need to be able to install the rosetta component in Snow Leopard from a script file. We have a management tool that allows us to run scripts on our macbooks. We need to install a new piece of software across the company and this software requires rosetta to be installed. Some of the older macbooks are fine but the newer ones need to have it installed.
    We can detect whether it's there or not but for love nor money I can't find out how to install it from the terminal or a script.
    I've tried;
    installer -pkg /path/to/Optional\ Installs.mpkg -target /
    which says that it is installed but looking at it none of the components there have actually been installed.
    There must be a way to tell the installer which features within the Optional Installs package need to be installed.
    Any ideas?
    Olly

    Hello,
    Did you ever figure out how to do this? I'm working on the same scenario. My next step was to copy the /usr/libexec/oah/ folder to another mac and figuring out how to add an entry to /Library/Receipts/InstallHistory.plist. Please let me know.
    Thanks!

  • I just downloaded and instaled firefox 4. Now, everytime I institute a command I get a po[p-up from Java script that tells me to uninstal set. I cannot go on untin I press ok and then I am good for one more command and it starts with the pop-up again.

    I'm not even sure if this is an extension or plug-in and all I can tell you is what I have already stated. I can only make one command at a time and after each one I get a pop-up from Java script that says uninstal set. I must depress ok to move on, but only for one more command and it starts over again. This also happened when I tried to instal firefox 4 a couple months ago and I deleted the program and went back to an earlier version.

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • Install Oracle from script

    Install Oracle from script
    Hi
    I need to install and uninstall oracle from script (Win platform), as part of product installation .
    How to do it?
    Can you lead me for a link explain abut it ?

    Hi;
    What is your oracle version?
    I need to install and uninstall oracle from script (Win platform), as part of product installation .If you are 10g level than check
    http://download.oracle.com/docs/cd/B19306_01/install.102/b14316/toc.htm << search as slient installation
    If you are 11g level than check
    http://download.oracle.com/docs/cd/E11882_01/install.112/e16773/toc.htm
    Also see below good explaination on Tim site
    http://www.oracle-base.com/articles/misc/OuiSilentInstallations.php
    Regard
    Helios

  • Script to rebuild all installed packages from ABS

    I realize pacbuilder is for that, but it doesn't seem to work properly for me. Skipping a lot of packages etc.
    Anyway, I've made this very simple script to just rebuild every installed package from core/extra/community. Sorry for the localized echo output, but I think it's all very simple and straightforward to understand.
    Edit:
    I've improved it a bit, now it should work flawlessly and remember what stuff it has to finish no matter when you ^C out of it. Also it installs all compiled packages, if you want to avoid that, remove -i switch from makepkg.
    #!/bin/sh
    # user configuration
    absdir="/home/mateusz/abs/autobuild"
    pkgdir="/home/mateusz/abs/packages"
    pkgfile="/home/mateusz/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Uaktualnianie bazy abs..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Tworzę listę pakietów do zbudowania..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Znaleziono poprzedni build."
    echo "(autobuild) Jeżeli nie chcesz go wykorzystać, skasuj $pkgfile"
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Szukanie pakietu $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Budowanie pakietu $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) Pakiet zbudowany."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) Błąd budowania pakietu!"
    fi
    else
    echo "(autobuild) Pakiet nieodnaleziony!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linkowanie pakietów do $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Zakończono."
    exit 0
    Last edited by xaff (2009-05-03 13:47:17)

    Here is the script translated into English (with a bit of help from Google Translate, as well as grammar cleanup).
    #!/bin/sh
    # user configuration
    absdir="/home/aabbott/abs/autobuild"
    pkgdir="/home/aabbott/abs/packages"
    pkgfile="/home/aabbott/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Updating the ABS database..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Creating a list of packages to build..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Found a previous build."
    echo "(autobuild) If you don't want to use this build, delete ${pkgfile}."
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Searching for $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Building $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) $pkgname built."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) There was an error when building ${pkgname}!"
    fi
    else
    echo "(autobuild) $pkgname not found!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linking to $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Finished."
    exit 0

  • Installing nntpgrab from the AUR

    Hi guys
    I hope you can help me. I tried to install nntpgrab from the AUR using pacaur. However, after some compiling process I get the following error:
    mkdir: cannot create directory ‘/-gtk-target’: Permission denied
    ==> ERROR: A failure occurred in package_nntpgrab-cli().
    Aborting...
    :: nntpgrab cleaned
    How to fix that? I noticed that the package is not maintained any more. Is there anything wrong with the install script?
    Last edited by custo (2015-05-03 13:58:45)

    The package have not been updated for years and needs some major work. I suggest you write a new PKGBUILD
    Edit: Upstream seems to be pretty dead too
    Last edited by Mr.Elendig (2015-05-03 14:37:42)

  • Stop OIM application from a script

    Is there a way to shut down the OIM application server manually from a script, without going through the admin console?

    Yes you can.
    I saw that when we install oim with weblogic 8.1 then it doesn't create Stop Script. We have to create such scripts manually. .If you ggogle then you'll find lots of threads for the same.

  • Can't install Updates (run preinstall script)

    Hello, recently I can't install updates from apple. I get the following messages:
    Quicktime 7.62:
    The following install step failed: run prefight script for QuickTime 7. Contact the software manufacturer for assistance.
    Leopard 10.5.7:
    The following install step failed: run preinstall script for MacOSXUpd10.5.7. Contact the software manufacturer for assistance.
    iWork '09 Update 2 (9.0.2):
    The following install step failed: run prefight script for iWork '09 Update. Contact the software manufacturer for assistance.
    The same for iTunes 8.2 and iPhone SDK 3.0 beta 5.
    Can someone help me?
    Thank you,
    pat from Germany

    Hello...
    I am having the exact same problem this person was having, except that I wasn't able to repair permissions. When I attempt to do this, I get this message:
    The underlying task reported failure on exit.
    Does this mean that I have to do an Archive and Install? In which case, would you mind walking me through that process? <:)
    I really have no idea why this is occurring, as well..if you could explain that to me, I'd be very grateful.

  • Install iWork09 from box and it still asks for serial number

    Hi all,
    I think I have previously installed iWork and used trial version.  Recently, I bought a family pack boxed version of iWork.  On my MBA, it installed fine and works beautifully.  On my iMac, it installs fine as well except when I open any of the application, it says I either have to buy a serial number or I install from my DVD, which I have already done.  Just in case, I installed it from DVD again to see but I get the same results.  I can't use my iWork on my iMac.  Can you help?
    Thanks.

    If you had made a search in this forum you would have found the answer many times. You have to thoroughly delete iWork. It isn't enough to delete the parts you see in the application folder.
    use Yvan Koenig's script:
              •          Go to http://www.box.com/s/00qnssoyeq2xvc22ra4k
              •          Choose public_YK > for_iWork'09 > other_iWork'09 items
              •          Click on uninstall iWork '09.zip, decompress it, open it in AppleScript Editor and click the Run button
    restart the computer for good measures and install from the disk again. Don't forget to do the updates too

  • Brother Printer not printing in duplex from MacBook Pro

    Good morning, all;
    I'm hoping I can get some help on a printer issue. My lab runs a number of Macs, but also a pair of PCs. I recently got a new Brother duplex printer (HL-5370DW) and networked the computers to it. The printer is working fine, except when we try to print duplex from the MacBook Pros in the lab. It will behave like a duplex printer in that it prints one side, then feeds the paper back through to print on the reverse, but the reverse never prints and it ends up going to another page. I have verified that all Macs are using the correct OX X 10.7 driver.
    Curiously, this doesn't occur when we print in duplex from the PCs. Even more curious, we have the same make and model of printer in one of our offices (with the same driver and networked similarly) and it will print in duplex just fine. Brother is claiming that this is a problem with our Macs and were rather unhelpful in trouble shooting. So any advice would be greatly appreciated!

    i have a brother HL-5370DW as well and my duplexing ability disappeared over the past couple of weeks.  i finally googled the problem tonight, and was happy to find this thread explaining the issue (the link to the thread from byline above helped further). 
    i went to brother's site, downloaded & installed the latest cups driver, and viola, problem solved (i did not have to restart the computer or printer, just installed the new driver and duplexing was good to go).
    for the record, the brother site has this to say about the update history:
    Version 4.1.0
    Corrects the issue of being unable to do 2-sided (duplex) print. (Only for machines supporting 2-sided (duplex) print)
    Version 4.0.0a
    Compatible with Mac OS X 10.7.

  • Cant install anything from Adobe

    On sep.11 i have updated Windows 7, installed new Java(update 40) and went to update flash which failed with this message.
    When i try again i get "samo jedna instanca ove aplikacije može biti pokrenuta" or in eng. "Only one instance of this application can be launched".
    I have thought it is some conflict with older version so i deinstalled flash and after all Adobe products from my PC. Now i dont have flash nor PDF reader. Same message pop out when i try to install anything from Adobe.
    I have tryed reinstalling Java, installing without Java, resetting internet settings, enabling scripting in IE, disable Security Essential but without any luck.
    Not an expert but i think it can be something malicious on my PC or older versions of program files that are causing this. I need help with this one.
    Thanks

    Just download the offline installers from http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#mai n-pars_header
    The offline installer for Adobe Reader is here http://get.adobe.com/reader/enterprise/

  • Packagemaker: need to run applescript from postflight script

    Does anybody makes packages using Packagemaker? I need to run applescript from postflight shell script. Generally, when we need to run applescript or any application from shell script we write:
    #!/bin/sh
    open /Path/to/applscrpt.app
    But what to do if all scripts (shell, app's) placed in MyPackage.pkg/Contents/Resources? What path I need to specify? This way:
    #!/bin/sh
    open ./Contents/Resources/applscrpt.app
    doesn't work...

    The $1 argument that gets passed to your postflight script by the Installer should contain the full path to the package that's currently being installed. So something like this should work...
    #!/bin/sh
    open "$1/Contents/Resources/applscrpt.app"
    Here is some additional info about args and environment variables available to your scripts.
    Steve

  • Calling an expect script from another script (sh)

    How to call the EXPECT utility from SHELL script?
    Our objective is - We have developed a shell script to connect the oracle database and generate the XML file and this XML file needs to be transfer to another windows machine using the SFTP servcies. We are planning to schedule this job using the CRONTAB.
    Our first script 1:
    # connecting to oracle database and generating the file
    ORACLE_SID=TEST
    ORACLE_HOME=/u01/oratest/db/tech_st/11.1.0
    export ORACLE_SID ORACLE_HOME
    LD_LIBRARY_PATH=$ORACLE_HOME/lib
    PATH=$ORACLE_HOME/bin:$PATH
    output=`sqlplus -s /nolog <<EOT
    set pages 0 feed off
    whenever sqlerror exit failure;
    connect xgbzprod/xgbzprod
    exec XGBZ_GL_COA_XMLTAG_PROC;
    EOT
    `
    cd /u01/oratest/gebiz_processed
    for fn in GEBIZ_COA_RPO000*.*; do
    # using the EXPECT utility to transfer the generated file to antoher machine
    set timeout 10
    spawn $env(SHELL)
    match_max 100000
    send -- "sftp username@IP Address\r"
    expect -exact "[email protected]'s password:"
    send -- "Password\r"
    expect -exact "sftp>"
    send -- "cd /<SFTP location>\r"
    expect -exact "sftp>"
    send -- "lcd /<Local locatoin>\r"
    expect -exact "sftp>"
    send -- "bin\r"
    send -- "put $fn\r"
    expect -exact "sftp>"
    send -- "quit\r"
    send -- "exit\r"
    expect eof
    -- When we run the above script it failes and the script is not recognizing the other variables.
    -- We have split the procedure to keep the oracle connection in one script and another script for EXPECT utility. But we are lack of how to call the EXPECT utility in shell script.
    Please help us
    Thank
    Dhanraj Chilla

    You might want to try to better understand shell script programming. It makes it otherwise difficult for a poster to recommend you a solution. I don't believe you can expect others to do all the development and testing work for you. Since this is a forum on a volunteer basis, you might also want to consider marking helpful replies and review received answers more carefully.
    Perhaps the following will work for you:
    #!/bin/bash
    export ORACLE_SID=TEST
    export ORACLE_HOME=/u01/oratest/db/tech_st/11.1.0
    export ORACLE_SID ORACLE_HOME
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$PATH
    echo
    output=`sqlplus -s /nolog <<EOT
       set pages 0 feed off
       whenever sqlerror exit failure;
       connect xgbzprod/xgbzprod
       exec XGBZ_GL_COA_XMLTAG_PROC;
    EOT
    `
    echo "$output"
    username="oratest"
    hostname="11.10.11.159"
    password="welcome1"
    for fn in GEBIZ_COA_RPO000*.*; do
       echo "GL Chart of Accounts File Name : " $fn
    /sftp.exp "$username" "$hostname" "$password" "$fn"
    done
    #!/usr/bin/expect -f
    set username [lindex $argv 0]
    set hostname [lindex $argv 1]
    set password [lindex $argv 2]
    set fn [lindex $argv 3]
    spawn sftp $username@$hostname
    expect -exact "[email protected]'s password:"
    send -- "$password\r"
    expect -exact "sftp>"
    send -- "cd /sftp0002/uat/inbox\r"
    expect -exact "sftp>"
    send -- "lcd /u01/oratest/processed\r"
    expect -exact "sftp>"
    send -- "put $fn\r"
    expect -exact "sftp>"
    send -- "quit\r"
    send -- "exit\r"
    expect eofP.S. The above code is very simplistic and does not take error handling into account.
    Using CURL, like I suggested in my first reply was an easier solution, since you don't need to to script Expect, but it turns out that you might need Enterprise Linux 6 or install at least CURL verison 7.19 to support sftp.

  • Executing a menu command from a script

    Hi,
    I'm still not very familiar with the PS CS4 object model and I'm wondering whether I can trigger the execution of a menu command from a script.
    My purpose is to fix the CS4 issue with some plugins that have a bug causing some elements of the PS CS4 interface (like the Arrange Documents drop down menu) to appear blank when hovered with the mouse. This problem usually disappears when launching these plugins. For example, you'll have the problem when installing Nik Software's Silver Efex (they promised to fix this in February but we're still waiting). Launching "File | Automate | Nik Selective Tool" and then closing the dialog fixes the issue... until you re-launch PS.
    So I want to do that automatically when PS starts. I tried with an action which I attached to the startup event but the action is not launched (probably because the plugin is not active yet). So I tried the scripting way but I don't see how I can launch a menu command automatically.
    Thanks in advance.
    Patrick

    Most events that I have used run the script after the event but I'm not sure about the startup event order either.
    You might try add the creation of a new doc to your action. Then after the nik step close the doc without saving. That may force Photoshop to wait until the plugin loads before running the action.
    Another thing you could try is create an script that calls your action. Something like
    doAction( 'run Nik', 'startup actions' );// action name, action set. I don't think that will help but its simple and might work.
    If that doesn't work then I can help you with a script that you can attach to a different event. It check to see if it's been run before and if not run your action. You could attach the script to all events to make sure it gets run soon after startup.

  • How do I install windows from USB on Macbook pro 3,1

    How do I install windows from USB on Macbook pro 3,1 ?
    My Superdrive is far from super anymore, So I managed to make an extern drive with both Snow Leopard Partition, Lion Partition (Since I thought Boot Camp 4,1 would bypass my problem), and Time Machine partition, Since I got 1. USB drive that works.
    - My general issue is that Boot camp Refuse to see the USB drive - (Many "how to"´s though show how they install windows perfectly through the USB port, but they use airbooks!, and somehow the Macbook will not ?)
    I fix that issue with >> rEFIt <<, that suddenly makes it possible for the Mac to see the USB drive, and partitions.
    Which was very strange since I could use an extern HD with the whole installation to start up wipe the whole disk, and then use my extern drive with partitions to install Snow Leopard and get everything as before with timemachine. Very smart with timemachine, but very lucky that I have a extern drive that runs the whole system and that I made the partitionsdrive before. DVD-drives are the past!
    Point: So the original system could see the Snow Leopard installation USB disk, but boot camp cannot find the USB drive ?????????
    After rEFIt I booted and then I got this error:
    Starting bootmgr.efi
    Error: Unsupported while loading bootmgr.efi
    I read it could be a problem with the Windows software, so I purchased an extern DVD drive, Used Disk Utility to make an image (.DMG), then used another program to convert the .dmg to .ISO.
    Then downloaded a trialversion of vmWare fusion, and installed windows from the iso. Everything worked brilliant, except and that is why I want to use boot camp, Running windows in another program while running the mac system is a little hacky and slow.
    Point: Nothing is wrong with the windows software, and windows runs fine.
    I then downloaded the Windows DVD / USB Tool, reformatted a USB drive as Master Boot Partition, MS-Dos Fat partition, then after lots of struggling got Vmware, windows to recognise the USB drive. And installed the windows software on the USB drive, as all the walkthroughs recommend.
    Then I tried for "fun"! to just install windows form the extern USB drive, and with rEFIt it will see the drive and start to do something, but then when it starts to boot, the screen just turns into black and nothing happens, and you can see the drive does NOTHING. (I think it is because I only have 1 USB drive and the Extern DVD drive does not get enough power, but again the mac refuse to see the USB drive unless it is a Snow Leopard installation USB-drive!
    Well trying to install Windows Ultimate 64 Bit, which worked great in vmware, because that program installed from the .ISO file that I had on the desktop, but trying with Boot Camp did not get anywhere, what kind of **** program is this boot camp anyway!?, but then I try the new USB disk with windows made from windows, thorugh rEFIt, it sees the disk and then starts and then I get this ERROR:
    rEFIt - Booting Legacy OS
    Starting legacy loader
    Using load option ´USB´
    Error: Not found returned from legacy loader
    Error: Not found from LocateDevicePath
    (x 9 times)
    Error: Load Error while (re)opening our installation volume
    The firmware refused to boot from the selected volume. Note that external hard drives are not well-supported by Apple´s firmware for legacy OS booting
    (Hey Apple please send out a updated firmware that fix this issue?!)
    So how do I do it ? - or is the only option to fix the partition running the system from the extern disk. Format the whole drive in 2 from the "bottom" and install windows and then afterwards install Mac on the other partition ?  Or just run windows on the mac and forget about mac software ? What a stupid solution...

    There are strings in the pliist file to add other Macs so that you can use some USB-DVD drives.
    This is 5 page thread, so a little more 'meat' to it:
    https://discussions.apple.com/thread/3410900?start=60&tstart=0
    And on PC booting Windows from a USB DVD to do the install is usually a piece of cake, sometimes you just need to specify that USB in the BIOS boot order and sometimes select via F12 (or another Fkey) and that is it.
    What you have here seems to be everything and everyone is excluded unless there is a  mac-model device ID string that specifies yes.  An unnecessary hurdle.

Maybe you are looking for

  • GRC-AC-5.3 - Delete old systems in CUP

    Hi, We are trying to delete some old systems from CUP and getting error "Cannot delete since referred in HR Trigger Action". The system is an old quality system that was decommissioned some time ago but was never removed from CUP (was AE at the time

  • Deleting backed up files

    I left some stuff on my desktop that was accidentally backed up on my latest time machine backup. This was about 30 GBs of stuff I didn't want backed up now wasting space on my external. Anyway I can go in and just delete those files? How about any o

  • Registering USB Power Adapter - Help

    Hey, does any1 noe how to register the USB Power Adapter for the iPod? ive tried puttn in all the numbers on the boxes and it doesnt work and it says that its not a valid serial number. the problem is, i also dont have the receipt for teh adapter eit

  • Getting PhotoStream pix to remain in iPhoto

    I got my pictures to flow among devices in PhotoStream, but the app's description says it's a temporary flow. If I want the pictures to get into my Macbook's iPhoto permanently do I have to manually import them all, or is there a setting that does th

  • HP P-7 1157CB video problomes

    I have a p7 1257cb desktop with a HP 2311x monitor . I have no video signial from my PC . whenever I turn on my PC I get a black screen after a few seconds my monitor goes to sleep due to lack of signal . I have tried both VGA and DVI cords same resu