Quick and dirty powershell script to backup esx 4.1 host configuration.

Hi, I am trying to achieve the following objective.
Login to each esx 4.1 host and backup its configuration.
My script is as follows:
When I step through, it fails line 14. I get the following error:
I can see that for some reason the $s variable is not being passed through the command. It leaving it as $s.
I can see that the variable is working fine for other lines 11, 12, and 16
Any help would be welcomed.

Hi,
You cannot pass the ip address to Get-VMHostFirmware -VMHost. Instead you need to pass the hostname and it will work like charm.
thanks,
Rohith

Similar Messages

  • Is there any quick and dirty way to determine what something will look like

    Hi,
    Is there any way (rule of thumb) to determine what something will look like when printed.
    for example.
    I am doing a composite (hope this is the right word). It will have some people sitting at a table and I want to have another layer with another picture behind it.
    I plan for the output to be fairly small (print size), say 4 x 5 or whatever.
    Now, if I go to the internet and google (or mamma.com) and search for images (large) and it comes back to me, I will see pictures that are (for example) 800 x 526 pixels 367 kb, or 940 x 480 pixels 166 kb.
    I would have to assume the 367 kb will print at better resolution, but if i liked the 166 kb picture better, is there a quick and dirty way to determine if it would print better (say 250 or 300 dpi or whatever) or not?
    So, bottome line,
    Assume my output picture will be 4 x 5 (and I want 300dpi (or is it ppi)
    How do quickly look at google results and determing if they will print ok?
    Bob

    The closest to a one click fix in photoshop cs-cs5 is
    Image>Adjustments>Shadow/Highlight or opening the
    image through camera raw and using the recovery slider.
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-765da.h tml
    MTSTUNER

  • Quick and Dirty Tree Mapping

    Hi, i'm trying to do a quick and simple mapping for categories.
    Something like...
    Vector v = new Vector();
    v = PatriotmemDB.getFAQCategories();
    FAQCategoryObj catObj = null;
    String catname = null;
    int catid = 0;
    int parent = 0;
    int counter = 0;
    int prev = 0;
    Vector catTree = new Vector();
    for(int j=0;j<v.size();j++) {
    catObj = (FAQCategoryObj)v.elementAt(j);
    parent = catObj.getCatID();
    if(parent == counter) {
    if(counter == prev) {
    catTree.elementAt(counter).add(catObj);
    } else {
    catTree.elementAt(counter) = new Vector();
    catTree.elementAt(counter).add(catObj);
    } else {
    counter++;
    I know this will give an error but basically break out each parent in separate Vectors so that when i loop through them i can test and show in a select list. My table retuns below...
    categoryid catname catdesc imglink order parent
    1 DRAM DRAM NULL 0 0
    2 Solid State Drives Solid State Drives NULL 0 0
    3 USB Flash Drives USB Flash Drives NULL 0 0
    4 Peripherals Peripherals NULL 0 0
    5 Torqx Torqx NULL 0 2
    6 Zephyr Zephyr NULL 0 2
    7 Xporter XT Boost Xporter XT Boost NULL 0 3
    8 Xporter Razzo Xporter Razzo NULL 0 3
    Where the parent is the last column.
    Thanks for your help

    OK, so you have a tree, and you want to product these kind of weird vector slices of the tree, presumably as input to something else.
    How is the tree implemented? It looks like a vector of some class, in which the tree structure is implicit in the relationship of some fields of the class, but not an actual tree (composed of nodes, with directed edges between the nodes, no cycles, and a single node is identified as root). Right?
    If so, I can imagine one way to do it would be to create a Map<Integer, Vector<TheClass>> Loop through the vector, looking at each class, get the parent reference (which I take to be an integer from your example), and then look up in the map the vector identified for that integer. (If it doesn't exist, create it and add it to the map.) Then add the given class to that vector. When you're done, take the values set from the map.
    If you have an actual explicit formal tree, then I'd suggest writing a simple recursive function to span it.
    By the way, Vector is kind of long in the tooth. The more canonical List implementations these days are ArrayList or LinkedList.

  • Any way to use a quick and dirty icon like cLabel in the quick tools toolbar?

    I am a javascript cut-and-paster with ability to cobble things together.
    In previous versions of Acrobat, I had tools that were added to the toolbar using the technique shown in this script:
    app.addToolButton({cName: "MyFlattenButton",
       cLabel: "Flatten",
       cEnable: "event.rc = (app.doc != null);",
       cExec: "flattenPages();"
    That would create a toolbar button with the "icon" that read "Flatten" which is all that I needed.  I could click on it and it would flatten all pages in the document.
    I used this to create several different tools, all with different names and cLabels.
    This script still works in Acrobat XI (it adds the tool to the add-on tools list, and then I can add it from there to the quick tools toolbar).  The cLabel names show up in the add-on tools list, but not in the quick tools toolbar.  In the toolbar they all use the same generic icon (but they all work correctly).
    From reading in this forum I see that there is a way to create a custom icon but it does not look easy.  Is there any simple way to just have text appear as the icon as I used to do for earlier versions of Acrobat?
    Thanks.

    One further question...
    I found a code snippet somewhere online that attempted to deal with this issue.  That led me to this (failed) solution:
    this.importIcon("myIconFlat", "/D/J/CAD Standards/Stamps/Acrobat tools/flatten.jpg", 0);
    var flatIcon = util.iconStreamFromIcon(this.getIcon("myIconFlat"));
    app.addToolButton({cName: "MyFlattenButton",
       cLabel: "Flatten",
       oIcon: flatIcon,
       cEnable: "event.rc = (app.doc != null);",
       cExec: "flattenPages();"
    The problem there is that importIcon is not allowed from a folder-level javascript, apparently.  Would there be any way to use the importIcon part of this from the console and then cut and paste some output into the rest of the script?  Just looking for a way to get the icon into my script.

  • Best quick and dirty export format for roughcuts

    They'll be going up on vimeo.  Currently using H264, but filesizes are not small.  Cant use FLV for vimeo, was wondering for opinions are the best format for quick encoding and small filesize (quality not such an issue)
    thanks!

    are you saying reducing the size makes no difference to filesize?
    Correct.  The bit rate determines how much data is available to create the image in the frame.  If it's a small frame size, the data goes a long way and the picture quality is good.  If the frame size is big, then the data gets spread very thin and the picture quality is bad.  So a higher bit rate = bigger file = better picture quality for larger frame sizes.
    Regardless of frame size, only the bit rate and duration determine the size of the video file on disk.
    Jeff

  • Quick and Dirty "Chapters" with DVD Studio Pro?

    Ok, so here is my workflow:
    I have a project in FCP.  It's one large 60 minute file broken into segments from start/stop in my timeline.
    - I am going to export this to a quicktime reference file (uncompressed, 10bit)
    - Then use Compressor to turn the uncompressed movie file into MPG and AC3 video and audio format
    - Import the mpg and the ac3 into DVD Studio Pro as a track, set to play on dvd start
    - then burn the DVD
    My question is, is there any quick way to lay down chapter markers where the segments are so that when I put the DVD into a regular DVD player I can just skip to the next clip with the DVD remote?  (My source is one large 60 minute file with about 30 start/stop points in FCP)
    I just want to be able to scan the disc in the DVD player with the remote control without having to use the "search/speed" buttons to manually scan all the footage.
    If this is a noob question, and I am missing something, please explain.
    - I DO know how to add chapter markers in Compressor (and FCP), but am not sure if that translates to DVD studio in the output file, and I'd really like to do it in FCP because the segment start/stop points are already in my timeline.
    Thanks!

    1st, a QT reference movie is the same compression as the original files, not uncompressed.  Once you're workign with a compression scheme (HDV, DVCPRO-HD, NTSC-DV) going to uncompressed does absolutly nothing for you, it does not add quality, just gives you larger than nessisary file sizes.  If you export, use either a QT reference movie (there is no choice of compression scheme), or a ProRes QT.
    If you want the best quality, go directly from the FCP Timeline to Compressor, don't export anything.
    If your chapter markers in FCP are Chapter markers, go directly to Compressor, use one of the DVD preset folders, the chapter markers will translate into DVD SP.  You can than use DVD SP's automated chapter menu function to get things done fast, create Stories for more complex functioning, etc.
    This is old, FCP/Compressor parts may be outdated now, but the DVD SP part is still valid.  Shows that functioning I'm talking about.
    http://bbalser.com/tutorials_long/DVDSP/DVDSP_Full_Orig.mov.zip

  • Quick and dirty sound advice...

    ...bit off topic I know but:
    Filming just the service part of a friends wedding tomorrow. With their little Sony Handycam, hiding in a bush for sake of discretion. Want to put a mic by the couple so you hear them, not the bush rustling.
    I have an ECM personal mic and a lollypop/reporter mic both XLR, and a tiny Audio Technica personal mix which is mono mini jack.
    Has anyone got some quicky kludges to attach any of those mics to the camera. No idea what camera but I imagine it has one of those wee plug-in-power sockets...
    Thanks, in advance, for your wisdom
    Tall Jim

    For backing up:
    I save my tapes
    On disc I put music, Livetype/Soundtrack files, pictures etc
    I put my project files
    I don't bother with the render files; I can just render them out later
    If you have been circumspect with properly logging your reels, you can re-build everything with Capture Project

  • Quick and DIRTY Canon S90 lens correction

    From ACR 6.1 choose the Canon G10 profile, make it the default for the S90, set Distortion slider to 85, CA slider to 105, Vignette left at default 100.  I picked the values examining a 6mm (widest) brick wall image, then checked tracking for other focal lengths.  Does a surprisingly good job, certainly adequate for 99% of my S90 images.
    Richard Southworth

    LR does not ship with a separate profile for each body, against each lens. The camera model info here, AFAICT just notifies you what camera the lens was mounted on, when the profile was created.
    The same profile can quite happily work for other camera models too - even so far as, automatically extracting just the relevant middle coverage out of a FF lens profile, to correct images taken from a crop sensor body with the same lens mounted. (This will of course not work the other way around).
    The profile's aim is to characterise the lens optical performance, which does not per se change when you move it between cameras - (although this may not be quite 100% precise, e.g. in terms of vignetting off microlenses etc, it is normally quite good enough IMO). In the past, profiles used to address CA as well, and I believe this issue was more sensor dependent (the newer LR CA correction does not depend on the profile).
    If the need is a critical one, then your individual lens copy and your individual camera body can be used to "close the loop", and generate an empirically "perfect" custom profile. It's not very hard to print out and photograph the special targets, and then run the free DNG Profile utility; you can put as much or as little effort as you like into the number of focal lengths and apertures that you include. But if the supplied standard profile is good enough to save you that trouble altogether, it may not matter that it is not the theoretical best.
    AFAICT, the installed / downloaded profile is likely more subject to LENS sample variation (between your lens, and the one used to make the profile) - than, anything to do with using a different camera model.
    RP

  • Quick and Dirty Calculator - Can It Be Done?

    I'm making a calculator. I've looked into my options, stacks, postfix, or just using someone else's class. But one idea struck me as more interesting than the others, but while I've programmed plenty, I by no means consider myself a veteran, and I need a little help from you guys and gals.
    Is there any way to use Java's own expression evaluator in making a calculator?
    I imagine this would be possible by creating a new File by the name of TemporaryClass.java, and having the program write the expression in class form in TemporaryClass.java, for example...
    class TemporaryClass
       public TemporaryClass(){
          double x = /* Program writes expression here */ ;
          /* Something class writes x to xValue.dat */
    }... and then I would have my main program read in the number printed in xValue.dat, and then it's all Double.parseDouble() from there.
    But that's too much of a pain. Is there any simpler way to have java do the work for me, without forcing me to dissect an expression myself?
    Thanks in advance,
    Scott

    i wrote a program similar to this once
    you would give it a mathematical expresion in the form of a String (i.e. "3 + 4 * 3") and it would give you an answer
    i couldn't find a way to do it so i had to write my own program that would break apart the string and convert it into a mathematical expresion. i did this by using the order of operations (parenthesis, ^, *and/, +and-). i would search for each of the operators in the string using the indexOf(char) method. when i found the appropriate operator i would find the two numbers that were on either side of it, and convert them into doubles using the Double.parseDouble(String method) i would than apply the operator to the two numbers and reconstruct the string with the appropriate answer. i would repeat this using all of the operators until there were no more operators left and than i would call Double.parseDouble(String) one last time to give me a final double answer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • [MSI P67A-GD65]. Quick and dirty question: Is there a Windows 8 option?

    Hello everyone,
    I have a P67A-GD65(b3), with a Sapphire R9 280x with a GOP Bios. Windows 8.1 are installed in a gpt partition, the Windows Boot Manager is booting the machine. I have the latest beta bios installed (E7681.443).
    My question is: Does this bios have the Windows 8 options (like fast/secure boot etc)?
    I can't seem to be able to find them anywhere.
    Are these options supported with another bios?
    The bios is flashed using the forum tool, and all the relevant instructions (remove power, reset etc).
    Thanks in advance.

    Quote from: fromthewatt on 05-December-13, 01:56:49
    hi hpstg, did u run good on windows 7 with latest bios for your mobo and your amd gpu ?
    im having issues with my amd 7950 gpu...  with latest mobo bios beta....   i get intermitint crashes...
    This has nothing to do with the OP's question.
    As for his question, I do not see any win 8 features on that board. I may be wrong, but if there were, somewhere in the bios release notes you would see "Win 8 Support"

  • Financial management demo database - quick and dirty

    Hi,
    I have a need to get a financial management demo database running, but I dont have a need for the application or web components. Does anyone know if there is a sql dump available that can accomplish this?
    I'd rather not go through the trouble of installing the other components when all I need is the DB.
    Thanks,
    Fred

    I guess I should also ask if anyone would be willing to throw a dump of their demo database up on a FTP server?
    Thanks,
    Fred

  • Slow motiion...need the quick and dirty

    i have a 5 second file of a girl blowing kisses, how can slow this down to make it look so sweet?

    Select the clip. Modify>Speed or Cmmd (Apple Key) A. Change the default value of 100% to a slower ratio. Start out with 50%. Check the Frame Blending box to help smooth it out. Render if need be.

  • Does Forefront Endpoint Protection 2010 block powershell scripts from running?

    Hi all,
    I have a task that runs a Powershell script on a set schedule on a particular machine.  It has failed to run and I thought 1 of the potential reasons would be that FEP 2010 blocks the Powershell script from being run.  Does FEP 2010 do that?  If so, where can I find the setting to allow Powershell scripts (or VB scripts or Java scripts) to be run by my task?
    Thanks for your help in advance.
    Howard Lee - Microsoft

    If the script detect as malicious , FEP will block it, otherwise it won't block normal and safe PowerShell scripts. You may take a look at event viewer and see whether it being blocked or detect as malicious code by FEP or not.

  • Powershell script - how to read a registry hive and store the value in text file and then again read the text file to write the values back in registry

    Hi All,
    powershell script Method required to read a value from registry and then taking the backup of that values in some text file.
    For example the hive is
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
    and under path i need to take back up  of values in some text file and then put some value in the registry after back is taken in text file.
    Also how to read the text file values so that we can again write to registry hive  back from the back up text file.
    Your help is much appreciated.
    Umeed4u

    I think you need to read this first:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • Powershell Script to Enable and Disable SharePoint list versioning

    Hi,
    We have a Sharepoint list with a date and time field named 'Today' which we update overnight
    via PowerShell script to give the current date and this recalculates other calculated fields
    in the list.
    All is fine but we have versioning enabled on the list and so we get a new version created everyday.
    Is there a way to disable the versioning prior to running the update and then re-enable
    after?
    This is the script
    Add-PSSnapin Microsoft.SharePoint.PowerShell
    Start-SPAssignment -Global
    $SPWeb = Get-SPWeb "<SharePointSiteUrl>"
    $List = $SPWeb.Lists["ListName"]
    $Items = $List.Items
    foreach ($item in $items)
     $modifiedBy = $item["Editor"]
     $modified = $item["Modified"]
     $item["Today"] = Get-Date
     $item["Editor"] = $modifiedBy
     $item["Modified"] = $modified
     $item.Update()
     $list.Update()
    $SPWeb.Dispose()
    Stop-SPAssignment -Global  

    Hi
    Here is a quick powershell script to iterate a site collection and remove versioning on all list of base-type Document Library. Also the iteration removes all the current versions of list items. Great for freeing up space and also to make publishing sites
    a little more easy to manage content for trusted content approvers!
    Check the below powershell script
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    # Get site
    $site = new-object Microsoft.SharePoint.SPSite("http://YoServer:1002")
    # Iterate all the webs of the site
    foreach ($web in $site.AllWebs)
    # loop through all lists in web
    foreach ($list in $web.Lists)
    # Ensure list is of base Document Library
    if ($list.BaseType -ne "DocumentLibrary")
    # Move on
    continue
    # Loop through each item
    foreach ($item in $list.Items)
    # Get the file
    $file = $item.File
    # Delete all versions
    $file.Versions.DeleteAll()
    # Remove version from the list
    $list.EnableVersioning = $false
    $list.EnableModeration = $false
    # We still want to ensure check out
    $list.ForceCheckout = $true
    $list.Update()
    $web.Dispose();
    $site.Dispose();
    Please mark the Answer and Vote me if you think that it will help you to resolved your issue

Maybe you are looking for

  • How to..Show a wait dialog when data loads, then hide once data loads

    Description: This code will have the SAP default wait dialog become visible when the page loads and hidden after the data is returned for the table. 1. Place this code within the head tags. <head> <SCRIPT Language="JavaScript"> function show_wait_dia

  • Reduce pixelrate of background images ?

    Hi, as I was tempted to use too big background images, one(2560x1600)and other(1402x1160)in my current homepage, I quickly found out, that this slows down opening of the page tremendously. Is there a way to reduce the pixelrate or size of BR images b

  • ASM CREATE DISK FAILED

    i am getting this error while trying to create disk [root@dbanew sysconfig]# /etc/init.d/oracleasm createdisk VOL1 /dev/sda3 Marking disk "/dev/sda3" as an ASM disk: asmtool: Unable to clear device "/dev/sda3": Input/output error [FAILED] [root@dbane

  • Hard drive crashed cannot download music from iTunes Match

    Hello, I had a fairly extensive music collection and recently i had to get a new hard drive. I didn't think it would be a big deal because i had always updated itunes Match. But iTunes match isn't showing me my library to download my music again. Did

  • EMAILING FROM APPLICATION

    Hi: In our application we have created a unix shell script and SQR that combine to help us send emails from the application. It works great when we are sending text messages. However, somebody has asked us to find if we can send attachments. The SQR