can't get this to work...

$VMHostProfile = get-VMHostProfile-entity *.
$Cluster = get-Cluster-name "cluster."
$array = @)
Import-Csv "C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\Autodeploy.csv"-UseCulture | %{
$additionalConfiguration = @ {}
"network.dvsHostNic["key-vim-profile-host-DvsHostVnicProfile-dvS-RW-TESTMGMT-dvPG-RW-MGMT-management"].ipConfig.IpAddressPolicy.address" = $_ .mgmt_ip
"network.dvsHostNic["key-vim-profile-host-DvsHostVnicProfile-dvS-RW-TESTMGMT-dvPG-RW-MGMT-management"].ipConfig.IpAddressPolicy.subnetmask" = $_ .mgmt_sm
"network.dvsHostNic["key-vim-profile-host-DvsHostVnicProfile-dvS-RW-TestVmotion-dvPG-RW-testvmotion-vmotion"].ipConfig.IpAddressPolicy.address" = $_ .vmotion_ip
"network.dvsHostNic["key-vim-profile-host-DvsHostVnicProfile-dvS-RW-TestVmotion-dvPG-RW-testvmotion-vmotion"].ipConfig.IpAddressPolicy.subnetmask" = $_ .vmotion_sm
"network.dnsConfig.HostNamePolicy.hostName" = $_. Name
}
Apply-VMHostProfile - ApplyOnly - $VMHostProfile profile-entity $_ .dhcpip Variable $additionalConfiguration - confirm: $false - RunAsync
$array += $_ .mgmt_ip
}
Start-Sleep 60
Get-VMHost-name $array | Game-VMHost-disconnected state - RunAsync | Remove-VMHost-confirm: $false
It works all the way up to start-sleep 60 but
Get-vmhost gives this error
Remove-VMHost: the input object cannot be bound to all the parameters of the command either because the command does not input from pipeline or entry and its properties not m
look at the parameters that accept entries of pipeline.
C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\apply_host_profile.ps1:19 tank: 86
+ Get-VMHost-name $allLines | Game-VMHost-disconnected state - RunAsync | Remove-VMHost < < < <-confirm: $false
+ CategoryInfo: InvalidArgument: (VMware.VimAutom... entSideTaskImpl:PSObject) [Remove-VMHost], ParameterBindingException
+ FullyQualifiedErrorId: InputObjectNotBound, VMware.VimAutomation.ViCore.Cmdlets.Commands.RemoveVMHost
is there something wrong with the table?

With the parameter - RunAsync, the Set-VMHost cmdlet will not pass a VMHost object for the pipeline, but a TaskObject.

Leave the RunAsync setting

Tags: VMware

Similar Questions

  • I NEED ASSISTANCE WITH MY ETHERNET DRIVER. HOW CAN I GET THIS TO WORK NEW TI?

    Original title: driver ethernet

    I NEED ASSISTANCE WITH MY ETHERNET DRIVER.  HOW CAN I GET THIS TO WORK NEW TI

    Download and install it

    The driver should be available in the manufacture of computers site

    Use the snid on a label on the computer to search with while you're there

    Or if the motherboard came with a disc to load and the reader will be on it.

  • WTH... it became a frustration of long hours, how can I get this download work?

    WTH... it became a frustration of long hours, how can I get this download work?

    Hi gustolis,

    You are on a managed network. If not then please download desktop CC: https://creative.adobe.com/#products/creative-cloud . Sign in using your Adobe Id and password, and try to download Acrobat in the list of applications.

    If stil the same question try please download from direct link: http://prodesigntools.com/adobe-acrobat-xi-pro-standard-reader-direct-download-links.html .

    Please follow the very important instructions before downloading.

    Please let us know if it worked.

    Kind regards

    Romit Sinha

  • I get "Windows can't check for updates" everytime I try I get a "an error occurred" why I can't get this to work?

    I can't get updates at all. I did have one in 2 weeks because the automatic update can not pass for some reason any... Does anyone have this problem before?

    CharlesPyle,

    Suggest that you first spread malware as the cause of the problem by following these steps:

    (1) have your system scanned by the antivirus/security suite installed.
    (2) run this tool from Kaspersky: how to remove malware belonging to the family Rootkit.Win32.TDSS http://support.kaspersky.com/viruses/solutions?qid=208280684>

    If no malware has been detected, there's a Fixit on this page which will reset the Windows Update components:

    How to reset Windows Update http://support.microsoft.com/kb/971058components >

    Suggest you download and Save it. Then, close all the open programs and web browsers.
    Run Microsoft Fixit50202.msi and choose its default mode.
    After that he finished the race, see if the return code is displayed again when looking for updates.

    If not, then run the Fixit once more and choose his Aggressive mode.
    Restart once it is finished and see if the return code always appears when the updates.

    IF malware is detected, then please post if it has been removed and that the specific name of what has been detected.

    06/20 / 1109:22:48

  • I HAVE WINDOWS 98. I HAVE THE HP 5440 PRINTER. I DON'T HAVE A INSTALLATION DISC. HOW CAN I GET THIS TO WORK?

    Hi resurrection3,

    This printer is not supported on Windows 98. You can try to install using the printer Deskjet 990c driver. If this does not work, you will need to get the operating system to a supported operating system.

    Supported operating systems:

    Win 2000

    Win XP

    Win Vista

    Win 7

  • Complex roll - I can't get this to work. Help, please!

    Several times, I tired this tutorial on:

    http://www.layersmagazine.com/Flash-button-animation.html

    I realize that it is AS2. I tried using that and the AS3 (I'm TOTALLY new to this).

    Here is the fla file, with what I found:

    http://aaronpenton.NET/Fla.html

    When I preview the movie, it is empty.

    First of all - can anyone help me as to why?

    Second, how can / should I achieve with AS3? I just want to be able to mouse on and have just the movement of text and an image appear on the left, as in the tut.

    Any help much appreciated.

    Thank you.

    First of all, you must have something on stage so that something to appear in your file when you play.  So, when you open the file, drag an instance of movieclip filled button on the stage.

    Then, in your movieclip button on the layer you named affected area, you can see in the first picture where you added the code in the first frame.  Such code must be linked to the button and not placed in keyframe.  Then copy/cut it and then click on the button itself and then paste this code into the Actions Panel.  If you don't see the code symbol in the timeline you did correctly.  That should be all you need to do.

    Just as a note: If you initially that the code is the best place for the code because it is easy to find, it's just that this type of coding is designed specifically to put on objects.  To place the code where you did, give you your button an instance name (for example, "myButton") in the properties panel and then assign a somewhat similar code, such as...

    myButton.onRollOver = function() {}

    gotoAndPlay ("s1");

    }

    myButton.onRollOut = function() {}

    gotoAndPlay ("s2");

    }

    myButton.onRelease = function() {}

    getURL(...etc);

    }

  • Can't get my design work, if someone could lend some advice?

    Hello

    I'm a complete newb to v8.6.1 from Labview.  I come from the .net world and I have difficulties making the transition, some advice would be greatly appreciated.

    I have attached my .vi I came up with, but I hit a wall and I can not get this design works properly:

    I have two buttons on my .vi, a sample button and a calibration button.  When I hit the button in the sample, I need to write the values of my linear sensors in a file, it works fine.  When I hit the calibration button, I need get the values of the sensors, store them in a table for later use.  This works fine as well.

    The problem I have is that I have to use the values stored in the table in my button sample logic that does not work because I have cases for my condition 'False. '

    I'm even close to the right solution here?

    Thanks for the tips.

    There are different ways to do this. You need shift registers. You can also use the structure of the event. I tried to edit your existing vi just a bit and hope that's what you're looking for.

  • Internet Explorer and other applications open as microsoft works. How can I get this problem?

    Original title: all the applications on my computer appear as microsoft works. How can I get this problem? Even internet explore a works file is not displayed and does not open.

    All my desktop icons are listed under the ribs owrks and work does not support these applications. How to get back my computer to the way it was?

    Hello

    1. which is the version of Windows installed on your computer? For example, Windows 7, Vista

    2. have you done any software or hardware changes on your computer before this problem?

    I suggest you to see the steps in the following link.

    When you run an .exe on a Windows XP, Windows Vista or Windows 7 computer file, the file can start another program

    http://support.Microsoft.com/kb/950505

    Registry warning

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/ )

    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    Hope the information is useful.

  • I tried to delete some unused programs of my had drive and the PC deleted wlidcl.dll. How can I get this program for the PC works as before?

    I tried to delete some unused programs of my had drive and cleared PC wlidcl.dll How can I get this program for the PC works as before? The PC works now as slow as a snail climbs.  What do you suggest me? Thank you

    Norman.--

    E-mail address is removed from the privacy *.

    original title: wlidcl.dll

    Hello

    I suggest to follow the steps below and check if the problem persists:

    Not one:

    Uninstall Windows Live essentials followed the procedure described in the link:

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Step b:

    Download and install Windows Live essential from the link:

    http://explore.live.com/Windows-Live-Essentials?OS=other

  • I'm trying to install Acrobat 8 Std on a laptop computer that was in need of a restoration.  He asks the file AdobePDF.dll since my Vista CD - I do not have.  How can I get this file or another which will allow my Acrobat 8 work on this laptop with Win 8

    I'm trying to install Acrobat 8 Std on a laptop computer that was in need of a restoration.  He asks the file AdobePDF.dll since my Vista CD - I do not have.  How can I get this file or another which will allow my Acrobat 8 work on this laptop with Win 8.1, which she did before restoring?

    John,

    AdobePDF.dll is in the file Data1.cab. Mine is located in C:\Program Files (x 86) \Adobe\Acrobat8\Adobe Acrobat 8 Professional\ You need to extract the file "AdobePDF.dll_64" from the .cab file. You can do this with WinZip or 7-Zip. Everything you need to extract is this file, nothing else... Once you have extracted it, remove the _64, so the name of the file is AdobePDF.dll. Then place the file in any location you want and run the program it when asked. For a file location, I suggest to C:\Program Files (x 86) \Adobe\Acrobat8\

    Hope that helps.

  • How can I get FireFox to work on the first Google ChromeBook addition? He repeats to me upgrade and when I do it says does not support?

    How can I get FireFox to work on the first version of the Google ChromeBook? Everytime I open it it said to update or upgrade to FireFox and make it your main page. So I downloaded it and it's open once it is installed, but then a message appears that says "can't stand" search for an application that supports FireFox and its software, or something of the sort. I was sitting here with a full battery when I started and now it is dead... and I still don't have FireFox on my ChromeBook.

    What do I do now or how do I get it to work? And if it just simply won't work on a CHromeBook then they need to have that riht out in the open.
    

    Hello

    I had a peek in this and was informed that Firefox does not work on Chrome OS.

    It is designed and done a little differently from the likes of Windows and Linux and will not support another browser being installed.

  • I no longer get suggested words when composing a message text on my iphone 5.  How to get back to get this function works

    I no longer get suggested words when composing a message text on my iphone 5.  How to get back to get this function works

    Make sure that the text is on. You can do this on the keyboard (if you have several) by pressing and holding down the button to change between them.

    Alternatively you can go to settings > general > keyboard and make sure predictive is turned on (the switch must be green).

    If you see the image below, press the small white bar above the buttons T and Y and slide upward slightly.

  • Satellite L500D - can't get optical to work reliably drive

    HI again users Toshiba.

    Since I got my Satellite L500D I had a problem with TSST corpCD/DVGW TS - L633C ODD. I run 3 OS (Tri-Boot) and all have the same number, so, even though I have updated the firmware to version TO02, I can't get this drive to work reliably. From time to time it will "play" DVD / CD, but not more often.

    Basically, when I put a DVD or CD, the drive makes a sound of "hunting" and nothing else happens.

    I've been on several tracks of high-low registry settings, operating system specific upgrade and tonight an update of the firmware.

    Because etiquette programs that I use on this system I can't abandon this unit some 'tech boutique', even if there was a local.

    I am technician qualified in the field of electronics and electric, but have not been exposed to the functioning of such a DVD player so advice here before that I put on the classware magnifying and opt for a quick glance.

    My problem, what are looking for?

    Suggestions anyone?

    Hello

    What Satellite L500D you exactly (L500D-xxx)?
    If you have downloaded TO02 Toshiba support and download page?

    To be honest I n don't know what can be the problem, but you can remove the existing HARD drive, put the other HARD disk, install OS using the Toshiba recovery image (I hope that you created the recovery DVDs) and test the functionality of the BIZARRE with own OS pre-installed (factory State).

    If the problem persists perhaps you should contact Toshiba authorized service provider and ask for help. They can check ODD and replace if necessary.

  • I'm trying to uninstall Verizon's VZ Access Manager. I get "invalid UNINSTALL Uninstall Wise. LOG file. How can I get this off for Verizon can help me to get the new drivers installed?

    I'm trying to uninstall Verizon's VZ Access Manager.  I get "invalid UNINSTALL Uninstall Wise. LOG file.  How can I get this off for Verizon can help me to get the new drivers installed?

    Hello retabox, welcome.

    It would seem that the installer is corrupted. I recommend trying to use the Windows Installer Cleanup utility to force - to remove the application. Try this:
    2. click on the download link in the middle of the page
    3. save the file to your desktop or just click Run the installation of the application
    4. once the application is installed, open the utility. The utility must be located in the menu START under (START > programs > Windows Installer...)
    5. in the utility, find the application you want to uninstall, and then click the button 'delete' below
    6. once removed, restart the computer and see if you can reinstall the application
    Let us know if it works,
    Thank you!

    Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Vista SP1 - error startup! 0xc0190002! 328/88027 ($$ _boot_pcat_ja - jp_d98fca962b0246de.cdf - ms). I can not get this error to go away and start my PC now. Help, please!

    Vista SP1 - error startup! 0xc0190002! 328/88027 ($$ _boot_pcat_ja - jp_d98fca962b0246de.cdf - ms).  I can not get this error to go away and start my PC now.  Help, please!

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use it.

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Or try this Forum:

    http://social.answers.Microsoft.com/forums/en-us/vistarepair/threads

    Restore the previous settings, repair facilities, and retrieve data.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for