Problem with run invoke vmscript several times on the same VM

The following is a test command I am running

$PCCreds = Get-Credential
$VM = Get-VM -Name "Test-VM"
while ($VM -ne $null) 
     {
     $VM | Invoke-VMScript -GuestCredential $PCCreds -ScriptType Bat -ScriptText 'whoami' 
     Start-Sleep -Seconds 10
     }

While in this infinite loop, I receive a mixture of success and failures

ScriptOutput
----------------------------------------------------------------------------------------------------------------------
Test-VM\user
|  
----------------------------------------------------------------------------------------------------------------------
Invoke-VMScript : 7/9/2012 11:22:12 AM    Invoke-VMScript        While performing operation 'Connect to host service '
https://vcenter.local/sdk' at port 902' the following error occured: 'Unknown error'    
At line:15 char:45
+ while ($VM -ne $null) {$VM | Invoke-VMScript <<<<  -GuestCredential $PCCreds -ScriptType Bat -ScriptText 'whoami'
Start-Sleep -Seconds 60}
    + CategoryInfo          : OperationStopped: (:) [Invoke-VMScript], VimException
    + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_VixWaitForJob_VixError,VMware.VimAutomation.ViCore.Cmdlets. 
   Commands.InvokeVmScript
 
ScriptOutput
----------------------------------------------------------------------------------------------------------------------
Test-VM\user
|  
----------------------------------------------------------------------------------------------------------------------

With an array of objects of virtual machine using this same code seems to work without problems. These virtual machines are distributed over several hosts.

My guess is that this has something to do with sequential to the same host, reaching a connection limit max, as well as the connection is not completed after a successful execution of the cmdlet. Has anyone seen this problem before?

Against what version of vSphere are you running that?

And are you using PowerCLI 5.0.1?

Tags: VMware

Similar Questions

  • [JSX] Run a script several times at the same time?

    Hello world

    I have a script that make some photoshop editing on a photo I put in his argument. Right now I am able to run this script, one at a time. If I run the script twice (on a different image) it bug to not treat both correctly.
    I might want to do some sort of a multithreaded of this script. It is a script, like never using "app.activeDocument" or is it another way to start the document that you want to process? Or again, is it possible at all?

    Thanks for your answers,

    To post scripts Photoshop forum.

    You can run a script at a time. You can create a script that batch processes your images, or you can run your script in the batch processor or image, if you first create an action to run your script.

  • Why Windows asks me to install the same updates several times. Often several times the same updates and often several times in the same day?

    I install security updates and important. Sometimes in the same day, I wonder to install the same updates. When I check the history I see that they are already installed. This can happen several times in the same day.

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update

    UTC/GMT is 00:34 Sunday, March 11, 2012

  • Problems with lines due double date/time in the query

    Hello

    I'm trying to draw a list of the counties of the test sample. I want only 1 rank by the test result so that I can build a report in Cognos showing the rate of an outcome determined as a percentage of the total causes a range of dates.

    My problem is that I get duplicate for the same result rows: in the example below, I have 2 to 5 lines for each result instead of only 1 for each result. I have this reduced up to caused by the date - the date is the same, but the times are different, if several lines are drawn. I tried to use tronque(), among other things, but although the output now shows the same date without the time part, duplicate rows are always drawn.

    Any help would be appreciated!

    This is the code for the query:
    SELECT DISTINCT
        io.lab_id AS "LAB ID",
        l.name AS "LAB NAME",
        mtr.marketingtest_id AS "TEST ID",
        mtl.name AS "TEST NAME",
        mtr.marketingresult AS "MARKETING RESULT",
        COUNT(DISTINCT mtr.sample_id) AS "NO OF SAMPLES",
        TRUNC(os.statusdate) AS "STATUS DATE",
        os.orderstatuscodes_id AS "ORDER STATUS",
        io.redoorderid AS "REDOORDERID",
        mtl.locale_id AS "LOCALE"
    FROM igen_sample s
    INNER JOIN igen_igenityorder io ON s.igenityorder_id = io.igenityorder_id
    INNER JOIN igen_orderstatus os ON io.igenityorder_id = os.igenityorder_id
    INNER JOIN igen_marketingtestresult mtr ON s.sample_id = mtr.sample_id
    INNER JOIN igen_lab l ON io.lab_id = l.lab_id
    INNER JOIN igen_marketingtestlocale mtl ON mtr.marketingtest_id = mtl.marketingtest_id
    
    WHERE mtl.locale_id = 1
    AND os.orderstatuscodes_id IN (8, 9)
    AND mtr.marketingtest_id = 84
    AND os.statusdate BETWEEN '24-OCT-2011' AND '31-OCT-2011'
    
    GROUP BY mtr.marketingtest_id, mtl.name, mtr.marketingresult, os.statusdate, os.orderstatuscodes_id, io.lab_id, l.name, io.redoorderid, mtl.locale_id
    ORDER BY mtl.name

    Hello

    893078 wrote:
    Hello

    I'm trying to draw a list of the counties of the test sample. I want only 1 rank by the test result so that I can build a report in Cognos showing the rate of an outcome determined as a percentage of the total causes a range of dates.

    My problem is that I get duplicate for the same result rows: in the example below, I have 2 to 5 lines for each result instead of only 1 for each result. I have this reduced up to caused by the date - the date is the same, but the times are different, if several lines are drawn. I tried to use tronque() among others...

    TRUNC looks like what you want. If you want a single line per calendar day, or need to GROUP BY TRUNC (os.statusdate).

    AND        os.statusdate  >= TO_DATE ( '24-OCT-2011'
                                , 'DD-MON-YYYY'
                            )
    AND       os.statusdate  <  TO_DATE ( '31-OCT-2011'
                                 , 'DD-MON-YYYY'
                            ) + 1
    GROUP BY  mtr.marketingtest_id
    ,            mtl.name
    ,        mtr.marketingresult
    ,        TRUNC (os.statusdate)               --     <==  CHANGED
    ,        os.orderstatuscodes_id
    ,        io.lab_id
    ,        l.name
    ,        io.redoorderid
    ,        mtl.locale_id
    ORDER BY  mtl.name
    

    If os.statusdate is a DATE, don't try to compare it to a VARCHAR2, as 24 October 2011 "." Compare DATEs to other DATEs.

    Furthermore, GROUP BY product automatically separate results. If all GROUP expressions in the SELECT clause, there is not need to say SELECT DISTINCT .

    Published by: Frank Kulash, November 23, 2011 09:34

  • Recover up to time: several times to the same restore point

    Hello

    I have the following problem and I was wondering if someone can help me:

    My goal: I like to restore my database on a weekly basis (so every Monday we always start with the same database)
    That's why I start each Sunday a restore to a degree of master.
    After you restore the database to a specific point master-time - I need to rest the resetlogs.
    Once I have reset the restlogs that I can't get back to the master position since it is before the RESETLOGS.

    Let me clear my a bit with an example:

    RMAN > the judgment;
    RMAN > bootable media.
    RMAN > restore the database up to the time "to_date ('2009-10-12 09:00:52 ',' ' YYYY-MM-DD HH24:MI:SS)."
    RMAN > recover database until time ' to_date ('2009-10-12 09:00:52 ',' ' YYYY-MM-DD HH24:MI:SS). "
    RMAN > alter database open resetlogs;
    RMAN > the judgment;
    RMAN > bootable media.
    RMAN > restore the database up to the time "to_date ('2009-10-12 09:00:52 ',' ' YYYY-MM-DD HH24:MI:SS)."

    If so I try it I got the following error:
    From restoration to 09/10/12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 758 devtype = DISK
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at 2009-10-12 17:48:36
    RMAN-20207: until the RECOVERY WINDOW, which was before the RESETLOGS


    So is there someone who has a solution for my problem?

    Kind regards

    If you actually restore the old backup control file, then you don't have to reset the incarnation. If you use your current control file, then you need to reset the incarnation. The problem you may have with the help of your current control file is that metadata on backups can have been erased in the control file. If so, you must increase the value of CONTROL_FILE_RECORD_KEEP_TIME.

    And you are right, you must be in EDITING mode to RESET the DATABASE. Go figure... looks like another bug in documentation.

    If you're on 10 g + and you really want to make things easy, you can create a POINT of RESTORING GUARANTEED and perform the FLASHBACK DATABASE and literally have your database to its original state in seconds to minutes.

    For more information about FLASHBACK DATABASE, see restore to the Point .

    Another option is just to do a backup of cold and then when you need to restore the old State, you just simply closing and copying old data files, control files redo logs on the current files and then start the database.

  • Windows Update offers several times that the same installed upgrading

    original title: update Windows using Vista

    Windows Update keeps saying I need to install the same update: a security update for Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package (KB2538242) I installed it successfully, but he continues to return again and again to the top.  Any ideas?  Thank you

    Launch a collateral request for assistance free Windows Update:

    https://support.Microsoft.com/OAS/default.aspx?Gprid=6527&St=1&wfxredirect=1&SD=GN>

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    If you /clear/ State only one specific updated because of problems and don't ask questions, you /he/ receive assistance free of charge for the question.

    North American customers can also obtain instant access to unlimited free support by email or unlimited individual chat by visiting the following Microsoft Web site:

    >

    For enterprise customers, support for security updates is available through your usual support contacts.

    How to hide an update in Windows Vista

    1 open Windows Update by clicking on the "Start" icon and then clicking on '' programs. '' Choose "Windows Update" in the list of programs.

    2 click on "View available updates" to move to the screen that allows you to select the updates available for your computer.

    3. Select an update of the list that you want to hide. Right-click on it to bring up a menu, then click on "Hide update". If user account control is enabled, a confirmation dialog box appears on the screen informing you that "Windows needs your permission to continue."

    4. click on 'Continue' to confirm your action. If there are additional updates that you want to hide, steps 4 and 5 for each of them.

    5 search for updates and then click on "View available updates" to ensure that the updates have been correctly hidden

    UTC/GMT is 03:38 Sunday, October 16, 2011

  • Same resource get assigned several times for the same account user IDM

    Hello
    I now see a strange scenario in IDM. We have a DB TAG and a scheduled task. When I ran the scheduled task, then it assigns the purpose of resource GTC to the respective accounts in IDM. When I run again the GTC, the same object resource GTC is created once more for the user account. Means, now the user account has two resources GTC in the profile of its resources. It should have been only object resource GTC and update should have been linked to this GTC RO. Purpose in my about his creation of another object of the resource.
    Now, I ran five times GTC and my user now has 5 resource. Please let me Kow what harm I do.


    Thank you
    Kalpana.

    Make sure that this key field is mapped correctly in your recon field mappings. Also, check the areas of the reconciliation of the resource of the GTC.

  • Why Firefox will automatically open a new tab and go several times to the same specific web page? I don't have this Web page in my "Favorites" folders

    I have my browser open, work writing / reading email and BOOM, another tab opens and it's always the same web page. Why Firefox opens a new tab without any input from me? I don't have the suspect web page saved as a "favorite."
    Nothing appears on no bug/virus/spyware/...et.al. programs. WHERE hides this pita? `

    I also have the problem. in my case that it is caused by an add-on, I installed recently. name of the add - on's Personas Rotator. I have just to disable the add-on and everything back to normal. just check your recent module, disable it and see if the problem persists.

  • How can I solve very slow scrolling with the mouse when you press the command key? (MacBook Pro, Lion, no problem when using trackpad, no problem with other web browsers, other mice have the same problem)

    Scrolling speed is fine, but when you press the command key and then it becomes very slow.

    He does it with a mouse, but not with the trackpad.
    It does when the modules are disabled.
    No problem on Safari or Chrome.
    No problem on PC.

    I think it all started when I went form a MacBook with Snow Leopard on a MacBook Pro with Lion.

    Any help would be much appreciated.

    Thanks in advance!

    You use the mouse wheel to scroll?

    There are some prefs mousewheel, which control the behavior when you press the modifier keys.

    You can set the key to the action of each to 0 for normal scroll.

    See http://kb.mozillazine.org/About:config_entries #Mousewheel.

  • After downloading the last update for my iphone 6, it caused a problem with Siri... everyone has experienced the same thing?

    I downloaded the latest update for my iphone 6.  Siri now does not work.  Is there a link?

    Yes, lately, siri is useless for me.  Every time I try to create a reminder (of dozens of times a day) it says "a s...". "followed by"I'm sorry, I couldn't create a reminder. »

    Turn off the phone and then back on (full stop) restores this feature for about 30 minutes, then it stops working again.

    Also, when I say "Open recalls" Siri she responds with "I'm sorry, but I can't find an application named"reminders"on your phone.

    This is despite the fact that the reminders app is RIGHT THERE and there and APPLE APP.

    Ridiculous.

  • Problem with pinned objects objects/non-epingles on the same page

    I have a vertical menu on my website that appears on every page; It is attached on the upper left corner. On many pages of my site, I pinned objects (images, text, etc.) adjacent to the menu PIN. Almost all the scrolling on my Web site is parallax scrolling (horizontal or vertical). I'm running into a problem where, depending on the size of the browser window, not pinned ojbects overlap the menu PIN. The positioning of objects on the page seems to depend on whether or not the pinned object; I guess my question is possible to the objects of the PIN over another? I want the menu to stay no scrolling, but I want to make sure my non pinned objects passing never cross / overlap of the menu because it looks so sloppy. The question arises when the browser window is too small, but again, I want to make sure this will never happen anyone who is looking at my site. The first photo, this is how it should look like (what it looks like when the browser window is large), the second photo is the problem that I'm trying to fix.

    Screen Shot 2016-01-17 at 10.03.46 AM.pngScreen Shot 2016-01-17 at 10.03.52 AM.png

    Just read here:

    NAV/menu hidden behind images bar

  • I lost the most views drop-down list under the search bar, it used several times in the same session, and then he just disappeared.

    The drop-down list is / was my part used of any page, use it to access to everything I need. The only other thing I noticed changed it's new green bottom-tab at the top of each page: site Web Safe/number of trackers. I can't get rid of it. Avira virus control icon is on my desktop, but the icon also suddenly appeared on the right side of the search bar. I deleted it because I have it on the desktop. I have no why he appeared suddenly. It is my 3rd session today. I had not changed anything in previous sessions, so don't know why the drop down menu has disappeared.

    Any help appreciated.
    HK

    Hi, hopefully a screenshot can make things more clear - when you right click in the area of the red dot, then a popup menu will appear where you can re-enable the toolbar of bookmarks.

  • Creative suite 4 master collection of error installation will not install Premiere Pro, still, indesige, flash, ps4, sequelae.  He was installing everything.  Have tried reinstalling several times.  The firewall turned off and no other programs running. 

    Creative suite 4 master collection of error installation will not install Premiere Pro, indesign, flash, Photoshop and AfterEffects.  He was installing everything.  Have tried reinstalling several times.  The firewall turned off and no other programs running.  Running windows 7 64 bit.  Had no problem with installation on my last computer 64-bit windows 7

    It seems that everything is installed now.  Don't know how, but I think that I opened it as administrator.

    Thank you

    Corey

  • I just downloaded Adobe XI on my macbook air, and now I can't save or print the PDF files. Don't let me do print - save as PDF, and if I do record as I get a message indicating that the file is corrupted. I had NO PROBLEMS of all do this several times unt

    I just downloaded Adobe XI on my macbook air, and now I can't save or print the PDF files. Don't let me do print - save as PDF, and if I do record as I get a message indicating that the file is corrupted. I had NO PROBLEMS of all do this several times until I downloaded the new version. I uninstalled and reinstalled it, nothing helps. I am super frustrated.

    lrfrustrated wrote:

    I just downloaded Adobe XI on my macbook air, and now I can't save or print the PDF files. Don't let me do print - save as PDF, and if I do record as I get a message indicating that the file is corrupted. I had NO PROBLEMS of all do this several times until I downloaded the new version. I uninstalled and reinstalled it, nothing helps. I am super frustrated.

    Print > save as PDF - use an excerpt (part of Mac OS X), so Adobe Reader should have no effect on that at all.

    As for the error "file corrupted", simply uninstall the Reader app will not affect it. Follow these steps:

    Mac/HD/Library/Internet Plug-ins

    Trash the files AdobePDFViewer.plugin and AdobePDFViewerNPAPI.plugin

    Mac HD/Applications

    Trash the application Adobe Reader

    [user] / Library/Preferences

    Trash the com.adobe.Reader.plist file

    To access the [user] / Library, hold down the 'Option' and click on 'Go' in the FInder menu.

    Mac HD/Library/Application Support/Adobe

    Trash the drive (full record)

    Empty the trash.

    Download the installer FULL here: http://get.adobe.com/reader/enterprise/

    Quit your browser, and then reinstall the drive.

    Run it from the Applications folder and agree to the license agreement.

    You should have no problem with Safari PDF files download.

    Unfortunately, ANY PDF file that says it is damaged.... You will need their trash.

  • Safari address bar showing several addresses at the same time

    Anyone else having problems with the address bar. No work to present frequently visited sites and and after visiting the sites manually or via Favorites addresses are crushed between them (showing several addresses at the same time).

    I have the same problem since this morning, after the EL CAPITAN update

Maybe you are looking for

  • Exquilla do not cut it for approval, worse than other free tools

    It does not show even of simple PNG or JPEG JPG images, worse than Outlook web app. Don't mind paying the license if it was at least as useful as the free OWA. Disappointed, now swinging back on OWA. Wish you had better stand alone application indeed

  • HP ENVY 23-d055: HP Solutions Framework Support wiped out my HP Support Assistant for Windows 10

    I recently upgraded my HP Touchsmart 23-do55 of Windows 8 to 10 of Windows.  I needed to update the drivers for my LaserJet and when I went to the drivers and downloads page, I installed what is called the framework of Solutions from HP Support. This

  • Need to XP x 64 drivers for PSC 2510

    I have recently upgraded to Windows XP x 64 and I can not find the drivers for my PSC 2510. I tried to load the drivers for the other pronters and mixed results. Either, it prints pages of garbage, or it prints on top of the other writing on the page

  • When you use disk cleanup, drive D C and recovery should be included?

    When you use disk cleanup should you clean disk (C) operating system, and the recovery disc D. Then on drive c must only choose th files that are already enabled as the downloaded programs files and temp. Internet files or you need to clean more opti

  • UCS B200 M3 memory speed

    We have recently installed a few new servers M3 B200, completely filled with DIMMS of 24 x 16 GB (1866 mhz), 2 x E5-2697 v2 processors. Manager of the UCS poster the DIMMs properly in the inventory tab, but in the general tab, shows "Memory operating