Problems with 'Wait-mission' and 'CloneVM_Task' in the script of vm - backup.ps1
Hey all,.
I hope you can help me with something. An environment that I help standing needs a systematic clone (copy) large number of virtual machines from a data store to another for customer test scenarios.
Not being is not a type of programmer, I found a script that looks like it fits the Bill here: http://www.mbnbusiness.co.uk/blog/2010/08/updated-powercli-vmware-vm-backup-script-v2-0/
However, when I run the script, I have two errors that seem to keep me from moving.
(1) the first issue seems to revolve around the wait-job command.
Waiting-Task: cannot bind parameter 'task '. Cannot convert the 'work-task-425″ type value 'VMware.Vim.ManagedObjectReference' to type 'VMware.VimAutomation.Sdk.Types.V1.Task'. C:\vmbackup\vm-backup.ps1:275 tank: 34
+ Wait-Task < < < < $task
+ CategoryInfo: InvalidArgument: (:)) [waiting-Task], ParameterBindingException)
+ FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands
(2) the second issue is the creation of clones themselves. I see no error thrown in the PowerCLI console while the creation of clone, but I see errors indicating in vCenter:
Clone the virtual machine
VCE-bvm-30_sub
Has specified parameter was not correct. Home
Any help you could provide would be most appreciated. I have attached the script, the input file and the error of console output.
Thank you!
Hi Aaron,
(1) the problem here is that the variable $task contains an object of type ManagedObjectReference. It is essentially the task ID, while the Wait-job cmdlet waits for an object of type Task. What you need to get the object by its task ID and pass it to the Wait-job cmdlet. Put this befeore the line of the "Wait-Task $task" line: "$task = Get-job | "where {$_.id - eq $task}.
(2) you do not specify a valid host in the $cloneSpec that you pass to the CloneVM_Task operation (' $vmView.CloneVM_Task ($cloneFolder, $cloneName, $cloneSpec) "). Set the it to the host where you want to place the cloned VM (by setting the property $cloneSpec.Location.Host). The host parameter can be set in certain situations, you need to decide based on the configuration you. Here is the description of the host of the VI QAnywhere parameter:
The target host for the virtual machine. If not specified,
- If the resource pool is not specified, current host is used.
- If the resource pool is specified and the target pool represents a stand-alone host, the host is used.
- If the resource pool is specified and the target pool represents a DRS cluster enabled, a host selected by DRS is used.
- If the resource pool is specified and that the pool of the target represents an active without DRS cluster, an InvalidArgument exception thrown.
I hope this helps.
Kind regards
-Angel
Tags: VMware
Similar Questions
-
I use vista, some updates have been loaded and now I'm having problems to open a link in a Web page. I had this problem before and it was the compatibility tool but I check that and it still does not work.
Go to control panel | Internet Options | Programs and IE set as the default value. If this does not work, then go to control panel | Default programs | Associate a type of file or Protocol with a program and then the page down to HTTP and HTTPS protocols and associate them with IE.Stevewrote in message News: * e-mail address is removed from the privacy *... I use vista, some updates have been loaded and now I'm having problems to open a link in a Web page. I had this problem before and it was the compatibility tool but I check that and it still does not work.
-
Problem with task bar and appearance of the start menu.
My account is the only account on my computer of the family that seemed to have lost the look of Windows Vista in the start menu and taskbar, as well as the windows that appear. It seems to resemble an earlier version of windows, but with the arrows and vista available, wait his gray. I went into the control panel to see if I had changed it accidentally, but he says he's still the appearance of vista. What happened since I restarted the computer the other day, and it's really frustrating.
Try this:
Restore point:
http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/
Do Safe Mode system restore, if it is impossible to do in Normal Mode.
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.
http://www.windowsvistauserguide.com/system_restore.htm
Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.
See you soon.
Mick Murphy - Microsoft partner
-
Problem with opening files and programs after the attack "rogue security."
Earlier this year, I met a rogue security program called Windows Security 2011. I had removed it, but I'll still have some serious problems. I found another user here, who had a similar encounter: http://answers.microsoft.com/en-us/windows/forum/windows_xp-windows_programs/exedirectory-file-association-problems/5dcd9044-8b57-43e0-a3bc-0c966326f0da
"But since the incident, the PC has struggled to open .exe files. If I open Mozilla Firefox, for example, it will ask me to specify the program to run it with. I can browse the OS and find the firefox.exe and open it with that, but it won't allow me to check the box "always use this option. "
It's exactly the same problem that I have now, as well as some sections of the control panel not working not at all, but there is no answer about what to do after the malware has been removed. Is there a way this can be fixed now?Hi Lapeul,
You can create a new user account and check if you can solve the problem.
How to create and configure user accounts in Windows XP
If you are able to resolve the problem, you can consult the following article to fix the damaged user account.
-
Problems with Office 2010 and Acrobat 8 Pro
Good Day All;
We are in the middle of upgrading Windows XP to Windows 7 with Office 2010 and I was wondering if there are problems with importing Office documents in Acrobat 8 Pro. I discovered that there is some problem with office 201 and designer of the life cycle.
Any comments would be useful
Concerning
Chomp
Acrobat 8 is not compatible with Microsoft Office 2010 and PDFMaker plugin is not installed. Only Acrobat X is compatible with Office 2010and at that time in 32-bit mode.
Acrobat 8 is also not officially compatible with Windows 7, once again Acrobat X is the first version to include accreditation for this OS. It will still install, but Adobe cannot guarantee, it will work perfectly in all cases and does not provide any support for this combination installation.
-
Question
I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the mode 5 firefox safe and always without success. Help, pleaseTo help other users find solutions, please come back to this Thread and connect you to the
Forum with your user name and password:Click on 'resolved' beside the answer above that BETTER resolved your issue
DO NOT CLICK on 'Solved It' next to this answer
-
How can I return to 4.0 3.6 I've never had a problem with 3.6 and now 4.0 crashes all the time tell me how to go back
Downgrade to Firefox 3.6 first of all uninstall Firefox 4, but do not select the option 'remove my Firefox personal data '. If you select this option, it will delete your bookmarks, passwords and other user data.
Then you can install the latest version of Firefox 3.6 available to http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your favorite courses, passwords etc.
I recommend, to avoid possible problems with decommissioning, accessing your profile folder and delete the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Delete these files will force Firefox to rebuild the list of installed extensions, check their compatibility and cancel the toolbar customizations.
For more information on how to find your profile folder, see https://support.mozilla.com/kb/Profiles
-
Original title: mouse problems
I have problems with my mouse and have not been able to find a solution to the research on various forums. Here are the symptoms:
1. you must click several times to get the menus to open. Sometimes they are not just and sometimes they open with a single click flash but do not stick until I clicked several times.
2 several times the menu drop down and seem to become transparent (not in looks) because when I click on something on the menu, he actually selects everything that is behind the menu drop down. For example, if I'm in powerpoint and you select an item in edit mode, it might work and here again he can just select the slideview behind the menu and expand. Or well, if I'm on a Web site, such as Facebook, and I chose to close the session, rather than enable the disconnection of the key, he chooses some ad is behind the part of the menu and redirects the page of this Web site.
3. when I try to select a Word, words or sections as paragraphs, it performs several different things: continually select as soon as I let go of the mouse button, the jumps of color selection in another part of the document, or deselects the part of the text before I even let go of the mouse button.
Here is what I tried:
1. I had originally a usb wireless mouse. I changed the batteries and then got a new. Now I use a wired mouse.
2 make sure all updates for Windows and Office 2010 are updated.
3 has tried to update the drivers mouse, says that it is up-to-date. He restored, did not work. Uninstalled and restarted.
4 Ran Windows Security Essential and Malwarebytes - found nothing.
5. ensure that all the Toshiba updates were up-to-date.
I don't know how the word this issue properly in order to find information about it. Everything I typed in search engines brings me other problems unrelated to this one.
I am running W7 64 x Home Premium SP1, SP2 MS 2010 with a mouse Dell; Toshiba Satellite C655
Well I have stumbled on the fix... looks like there was a problem with the HID-compliant mouse. The convenience store hardware detected and solved the problem. Everything seems to work properly again.
-
After the last updates of windows have problems with start up and now drivers
Hello
After the last updates of windows have problems with start up and now drivers. I get an error code 21 when I try to install the drivers AMD apparently missing.
May 14, last night I had several (automatically) downloaded windows update
Today, I was unable to boot my computer with Windows - tried the disk check, start checks etc, and eventually had to use System Restore (for help before the critical update to restore).
Perfection, everything works, but knowing that windows will attempt to redo an automatic update, tried to check online - no one seemed to have a problem and (naivly) thinking I could always do another restore of the system, I rebooted again.
Same thing worse. Could not do a sys restore either just before restarting or last night. Chose a date earlier (last week) but then lost the USB drivers and pilots display. Downloaded updated but refuses to let my AMD driver install Windows I have a very unpleasant screen... and I must now stop the installation of this update "critical."
Would appreciate advice how do my installed display driver or whether anyone else has problems following this update
Thank you
Hi Jane,
You have a disk to install Windows 7 with you?
I suggest you to check the event viewer for error details report.
Open event viewer.
http://Windows.Microsoft.com/en-us/Windows7/open-Event-Viewer
-
Hello, after 3 years of use of this helmet and having no problems with it, now I can hear the sound in the right ear... what should I do? Help, I don't want to say 'goodbye' to it already... Thank you
It could be the plug on the computer that is the cause of the problem. Try another helmet or a pair of speakers in it.
If you hear only on one side, who will tell you that is the question.
If you hear from both sides, you must obtain a new helmet
Software will fix either of the foregoing...
-
Anyone having problems with Windows 7 and the HP LaserJet P2035n?
It seems, after a few months of service, there are several problems with this printer and Windows 7 only. We have several offices that use this printer and almost each one has similar problems. It will printer randomly disappear, not being able to print anything at random times of the day, to the spooler crashing every two minutes or more. There is no problem at all with Windows XP or Vista, only 7. Reinsalling the printer driver takes care of the problem for a few days, but the questions up all over again.
Hello
The Microsoft Answers community focuses on issues and problems related to the consumer environment. Please join the Technet forums below:
-
Hi all
I just had a software problem with my mac and had to reinstall everything using Apple. One problem, lost lightroom 5. Apple said that the code of the address has changed. How to recover my photos or have I lost?
At soon Pete J
Hi Pete,.
You can install Lightroom via this link:
However, to get the rear changes you have previously done in Lightroom, you need to get the backup of your previous Lightroom Catalog.
Store you the backup of your Lightroom catalog before recharging your Mac OS?
Kind regards
Claes
-
I had a problem with my Mac, and I have to reinstall Adobe Photoshop CS4, I have on a CD. I put the serial number I have on the cover, it takes it. another window opens and ask for the serial number. again, I put the same number and it says: invalid.
where will be the second serial number?
Help me please.
Thanks, Abe
Hi,
Please see error "serial number is not valid for this product". Creative Suite and serial number incorrect error
Kind regards
Sheena
-
I have problems with Lightroom. I just downloaded the creative cloud with LR and PS PS works fine, but does not open LR. It is stuck on the license screen and freezes. Please notify.
reset your preferences-
Acrobat: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html
Adobe media encoder: https://forums.adobe.com/thread/1713540
Legacy: http://helpx.adobe.com/after-effects/using/preferences.html
Bridge: https://helpx.adobe.com/bridge/kb/troubleshoot-errors-freezes-bridge-windows.html
Dreamweaver: https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
Flash: http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
Illustrator: http://helpx.adobe.com/illustrator/using/setting-preferences.html
InDesign: https://forums.adobe.com/thread/526990
Lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html
Muse (mac): https://forums.adobe.com/thread/1246022?tstart=0
Photoshop: https://forums.adobe.com/thread/375776
Photoshop elements: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html, http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm
elements of first: https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html
First pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html
-
Problems with Windows Update and load XP SP3
I had a problem with my system and had to replace my HARD drive and reload XP and all my applications and data. Now, I installed SP2 and try to install SP3. Windows Update does not work (get the 080244019 error code x) and when I try to install the SP3 files from the Microsoft site, it'll run about halfway through and then stop and hang, displaying the message "Finish Installation" with bar at halfway of the progression. I tried the MSRT and FixIt nothing helps. I checked services.msc to see all the required services are enabled or started. I read that some malware will be stop some services without notice.
After a few attempts to load the file SP3 failed, check Add/Remove programs in Control Panel Windows XP Service Pack lists 3 but no file size or to update the date information as with other programs. My browser is IE8 and I was doing some Hot fix for Windows XP downloads, this adventure started about 3 weeks ago, but no other automatic update downloads. I use the following McAfee provided by my ISP for protection AV and firewall with regular full scans. Scan today revealed there is apparently a single trojan file that cannot be deleted, but there were no further details. My system is also fully functional; I seem to get the updates for McAfee and other applications OK but not SP3. I received or otherwise installed following updates or Hot Fix for XP downloads in the past 3 weeks:
KB954550-v5
KB932823-v3
KB915800 v4
KB884020
KB926239
KB2618444 (Windows IE8 security update)
I found an answer on another forum on editing the registry for the "/ Edit EDWARD CSDVersion value ' but have not yet tried waiting for any response to this request. I'd like some useful suggestions. Thank you and happy new year!
Thanks for the quick response. I did some checking on my system, I have XP Home Edition ships with the system bought in July 2007. Add/Remove Programs shows that the aborted install XP SP3 and IE8 installation; I tried to load the SP2 file but it doesn't show here as an addition, so it may have been part of the original XP CD and I just crush. Even for IE7 so I am not able to drop back to all recommend you. I will try your solution later today and post my results. I saved SP2, SP3 and IE8 in my office and a flash player to reload later according to your instructions. Stay tuned.
It would be unusual for a CD of Windows XP (official) to have integrated Internet Explorer 7.
Maybe you are looking for
-
How can I return my "downloading" files, I have accidentally erased and deleted?
I pressed the wrong button, and modify the list of files in the download history, and they were all removed and allowed instead of one entry selected aimed.
-
External hard drive is extremely slow backup
We have an external hard drive connected to our iMac. Time Machine used to store backups, but something happened and he stopped to save on 16 February the hard disk became full and when the reader become unalterable for Time Machine could not delete
-
Satellite P30: Weld went to power jack at the back of the laptop
Food will not remain, as soon as you press wire it goes off and will not charge the battery up.It took me on the back of the pc, the component inside the box of money taken went to welding and I need to replace the box itself.Where can I get one of t
-
Recommendation of tutorial and software for streaming video?
iMac OSX Yosemite here is the problem: I work in a school and managing the "writing Center" in the library. I need a camera pointed at the writing Center cameras which broadcasts streaming to a Web page. Teachers will be able to click a bookmark to s
-
Whenever my computer starts it gets to the 'microsoft corporation' green loading bar then displays this message 'sasnative32 program not found - skipping autocheck. She disappears and start the computer as usual. How can I stop this from happening? I