Problems making VM to host exchanges - need help please!
Hi all. I'm having a problem with I script I have and could greatly grateful for the help.
Little bit of background, I have written a script our team uses to generate shells VM. The script prompts for a name, the type of operating system, cpu, memory, disk. Then, it connects to vCenter and based on the credentials, this what data center to build. Once selected, it then queries the datacenter for all available clusters. The user selects the cluster and the script queries the hosts connected in the cluster, and then randomly selects one. From there, he questions all exchanges of VM and presents a choice for the user to select. Finally given what precedes, then goes and built the hull VM and it powers on.
vCenter 5.1 update 1 Patch 2
ESXi 5.1 update 1 - Build 1157734
PowerCLI 5.1 Release 2 / PowerShell Version 2.0
So here's my problem. I am in standard vswitches transition for vDS connections and when I run the following line to get the available trade, it error.
$PortGroups = $VMHost | Get-VirtualPortGroup | Where {$_.} Name.ToUpper (). StartsWith ("VLAN")} | Select name - ExpandProperty | Sorting
Error:
ATTENTION: The output of the command product distributed virtual portgroup
objects. This behavior is deprecated, and may change in the future. To retrieve
distributed Exchange, use cmdlet Get-VDPortgroup of the VDS component. TO
retrieve the standard exchanges, use - Standard.
And then the line that actually running to build virtual machine is:
Try {Write-Host "Creation of VM... » ; $VM = new-VM-name $objVMName.text - VMHost $VMHost '
-Store data $DataStore"
-Card (Get-data center-name $VDataCenter |) Get-Folder-name of the Build)"
-DiskGB $objSysDisk.Text - MemoryGB $objMemory.Text NumCpu - $objCPU.Text - CD '
DiskStorageFormat - thin '
$objPortGroup.Text - NetworkName '
-ID $VMGuestID
}
Any help? I need to get vm exchanges that begin with "VLAN" regardless of vDS or vSwitch in order to feed the parameters Create-VM.
Thanks for any help!
So thanks for the tip about hiding the warning message. As the parameter seems to be depricated, I would like to change the code of a most appropriate syntax before she actually only l '.
That said, I have found highest in the newspaper, the real error message preventing the script completed successfully by trying to create the virtual machine. This time, it was RED everywhere...:
"Message: an element with the same key has already been added."
Once I found that the googs told me this post: first New - VM: an element with the same key has already been added.
So I upgraded PowerCLI 5.5 Release 2, and of course, the problem disappeared!
So now, with your advice on warning and googs, I solved the problem AND can hide these warnings until I change the code to use the appropriate syntax.
Tags: VMware
Similar Questions
-
NEED HELP Please im having a problem to forget my password and when I plug it it says its locked with a password he tried to put the itunes thing but it says enter password I put in what I rember, then said lokced for five minutes help me pls
Without knowing the password for your iPhone, there is no way to unlock it, bring even you to the Genius Bar. If you continue to enter the wrong password, you will be locked out of your iPhone, and your data will be unaccessable.
-
I have Windows XP 32-bit with IE8 Add ons. I mainly use Firefox Mozilla for my browser and Yahoo as my home page. Anyway, I have tried all the support and help guide and technicians told me to do to get add ons to open and activate but in vain. This computer was given to me as a profession, and it was used in a Bank, so I think that the system administrator has disabled the add ons. I myself as an administrator and use the tips and tricks given windows and Microsoft, but I always run up a wall. I need help, please.
I also need to know how to uninstall Windows antivirus software. I can't find anywhere on my computer. I feel really stupid and he is probably right in front of my face, but I can't find it to uninstall. I have McAfee that I paid dearly for if I want to use it until it expires.This "Microsoft antivirus' witness (AKA Trojan W32/FakeAlert) hijackware infection!
If you manage to somehow move to Win7, you will always have an infected computer.
The ONLY way to solve the problem is by formatting the current hard drive and do a clean installation of Windows, whether it is WinXP or Win7.
The ONLY way you can do a clean install of Windows XP if you have disks that came with the computer or if by chance, there is a hidden partition restore (not to be confused with the system restore).
If your kids er - well & their spouses are going to spend money on a new HARD drive, they'be be better spend on a low-end Windows 7 computer and brand-new (for example, a netbook or a mini).
NB: Any data on your Windows XP computer must be considered 100% reliable! (This includes all of your usernames and passwords, for example, those used for online banking, etc.) You do NOT want to put ALL the data from Windows XP to a new computer or HARD disk.
Good luck, Grandma. Hope that your grandchildren will treat you better than their parents.
PS: Time wounds all heels.
~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
Compaq cq10: need help please code error: CNU0015RN9 on compaq cq10 150ev
Need help please code error: CNU0015RN9
Thank you in advance!
Hello
No problem. Did you do a hard reset and try again?
For the error code, check again a time-
Try:
e9l11f3zv7
all lowercase letters
first letter is a small suitcase E
second is number Nine
third letter is small case L
fourth & fifth is number one
Sixth letter is small box F
seventh is number three
eighth letter is small suitcase Z
ninth letter is small case V
the last is number seven
Concerning
Visruth -
worked very well and when was time to save I get the cyclic redundancy check, I try several times and made the same thing I need help please
Hello Hans,.
Thanks for choosing Microsoft Community!
According to the description of the problem, you have problems when you use the backup on Windows 8 feature.
Please answer these questions to better understand the issue and help you:
1. are - what you're talking to backup and restore functionality on Windows 7?
2 have you made any changes to the computer before the show?
It is perhaps to cause bad sectors on the hard drive, run the disk check to repair bad sectors
Check your hard drive for errors:
http://Windows.Microsoft.com/en-us/Windows7/check-your-hard-disk-for-errors
Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.
For more information:
Backup and restore: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/back-up-and-restore-frequently-asked-questions
Hope the helps of information. Don't answer if you need assistance, we will be happy to help you.
-
I have Dreamweaver CC 2015 since last year, on a system win 7 with plenty of space and good care.
Never had any problems until last week, when Dreamweaver stop opening o creation of html or php files. Instead, the program displays an alert of "invalid argument has been found", then stops to do anything.I've looked everywhere. I cleaned the resgistry, reset preferences custom, tested different files, with or without content, old and new, even uninstalled and reinstalled Adobe CC. Nothing works.
I install Quora, because I have work to do, but I prefer clearly have CC Dreamweaver working again.
Need help please, I don't really know what to do.
Although that is NOT a real solution (now I have to keep a local copy redundant and unprotected and move almost a gigabyte of data, whenever I need to edit a project) work space solves the problem. I still don't know what has changed since before, but I can work again.
IMO Adobe should at least give notice of this behavior, letting us know that the application does not work because it is restricted to local activities. "This file cannot be saved through a network" or "this program can change the local files" would have sufficed for avoid me a good 5 hours of lost production.
-
The guys that I need help please,
Last night I tried to install the update to alcapitan to my macbook pro, but it does not work it makes me a message (your installation cannot be finshed) and many many things and when I try to strt my macbook still keeps it install the updat and then get the message again...
I need help please
Hello, check if the mac you can use El Capitan. See the information update of OS X El Capitan - Apple Support here
-
I need to change my apple user ID e-mail address. Since I will be withdrawn and used my personal E-mail address instead of company e-mail. I need help please on how to do it. I now use IPhone 6
Launch Safari on your iPhone, iPad or Mac and go to appleid.apple.com.
To an iOS device, tap on manage your Apple ID. If requested, please check your identity after the connection.
Click or tap on change in section Apple ID and primary e-mail address.
Edit with your new email address.
-
I want to return a plug-in, I accidentally deleted.i to play online snooker.can someone at - it need help please?
Hello
1. What plugin you are talking about?
2. on which site Web you are trying to play the game of billiards online?
3. what web browser do you use?
4. how exactly did you uninstall the plug?
Plug-ins are provided by third-party providers, you can try to load the game of billiards and verification that branch is needed.
Please come back with more information on the issue so that we can help you better.
You can also visit the link of the article of Microsoft that will guide you on how to ask questions below.
Suggestions for a question on the help forums
-
I'm trying to upgrade my vista to the next operating system or even 10 if possible and I can do what I need help please
Hello
There is no free upgrade Vista to 7, 8.1, or 10.
Follow these steps before you buy Windows 7.
Microsoft sells more than 7; Try Amazon.com.
Go to your computer / computer laptop manufacturer Web site and see if Windows 7 drivers are available for your make and model computer / laptop.
If this is not available, Windows 7 will not properly work for you.
Run the "Windows 7 Upgrade Advisor.
http://www.Microsoft.com/en-US/Download/details.aspx?ID=20
Check if your specifications are compatible for Windows 7:
"Windows 7 system requirements"
http://Windows.Microsoft.com/en-us/Windows7/products/system-requirements
"Windows 7 Compatibility Center" for software and hardware:
http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx
Windows 7 upgrade paths:
http://TechNet.Microsoft.com/en-us/library/dd772579 (v = ws.10) .aspx
«Installation and reinstallation of Windows 7»
http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7
@@@@@@@@@@@@@@@@@@@@@@@@
Follow these steps before buy you and upgrade (new installation) of Windows 8.1.
Check if the manufacturer of your computer/laptop has Windows 8.1 drivers available for your model.
If this is not available, Windows 8.1 not install and work properly for you.
There is a lot of information in this first link from Microsoft:
Download and run the Windows Upgrade Assistant 8.1 of to see if your machine is compatible Windows 8.1 and read the update for Windows 8.1: FAQ here
"Update to Windows 8.1: FAQ".
http://Windows.Microsoft.com/en-us/Windows-8/upgrade-to-Windows-8
"8.1 for Windows system requirements.
http://Windows.Microsoft.com/en-us/Windows-8/system-requirements
@@@@@@@@@@@@@@@@@@@@@@@
How to buy Windows 10:
http://www.microsoftstore.com/store/msusa/en_US/cat/Windows/CategoryID.70036700
But first make sure that you have the correct configuration and your computer manufacturer provides the right drivers for 10.
https://www.Microsoft.com/en-us/Windows/Windows-10-specifications#sysreqs
" System requirements Windows 10"
https://www.Thurrott.com/Windows/Windows-10/3884/Windows-10-system-requirements
Microsoft deploys Windows 10 available as free upgrade to Windows 7 features, Windows and Windows Phone 8.1 8.1 qualified. It will be available from July 29, 2015
"FAQ Windows 10.
http://www.Microsoft.com/en-us/Windows/Windows-10-FAQ
See you soon.
-
I have a problem check my code for Lightroom 6 help please, the site says code cannot be verified. I have an existing application of Lightroom 2 and I paid for the upgrade
If you purchased the version of LR 6 upgrade then when you install and run for the first time it asks you to Sign In. You must sign in with the same Adobe ID you used to buy it. Then once it's a window will appear asking for a serial number. In this window, you enter the serial number LR 6 What adobe sent you. Then once that went into a second serial number box will appear asking for a serial number from a previous version. Then you enter the serial number LR 2. Series LR 2 will begin with the same 4 numbers, 1160.
-
Downloaded CC and could open only once. Tried to download PS and the computer is off Mid-download. Now I can open is more than CC. It does nothing or said there was a problem and windows have to close. Help, please!
ininstall all cc
clean a http://www.adobe.com/support/contact/cscleanertool.html
Restart your computer
Reinstall the cc desktop application, https://creative.adobe.com/products/creative-cloud
-
Hello. I warned to creative cloud, but not what I was looking for. I want to cancel, but I can't find where I can do. I need help please. Thank you
Hello
Please see: -.
In order to cancel the order, please contact customer service
You can check: http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
For more information on cancellation: cancel your creative cloud membership
-
Windows - WDS deployment services. Need help please for password of mystery problem
Hello
Just need help or advice about a problem that's been here recently. I'll give you the sequence of events so that you can better understand.
An audit has been ordered here where I work and as I had just started working here 3 months ago, I decided to lock the network and make sure that everything was safe.
There is no service account, and the administrator account was used to run all 3rd party applications, so you can imagine what happened when I changed the admin password.
Before I did I created service accounts and exchanged them one by one, but the only problem that remains is WDS. When we PXE boot and deploy the image it is the language selection screen and also ask the domain credentials of junction. I have setup a DomainOverlord service account, checked and done so he could join machines to the domain and replaced the old administrator username and password in the AutoUnattend.xml file but it seems not to pick up the password.
Is there something that I am missing? Is it possible to check which file AutoUnattend.xml using the WIM file? The person who told of course establish a bit messy and I can see at 8-9 AutoUnattend.xml in random places on the server. I changed the details in each one, but it is not always the image itself.
Any help would be great, the guy in front of me got me fired, I begin to understand why!
Thank you
Luke Bayley
Ask in the forum Windows Server:
http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer -
I have a problem, try to uninstall the ask toolbar. get the error message: unable to access the VB script... need help
Hello
How do you try to uninstall the toolbar?
I would suggest trying the following methods and check if it helps.
Method 1:
Try the steps in the following Microsoft article and check if it helps.
How to fix script errors in Internet Explorer on Windows computers:
http://support.Microsoft.com/kb/308260
Correction of errors in Internet Explorer: http://support.microsoft.com/kb/822521
Method 2:
Try to uninstall the toolbar, programs and features and check if it helps.
Uninstall or change a program:
http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program
Hope the information is useful.
Maybe you are looking for
-
How to highlight words or phrase selected in an article? Then the method will copy / paste the word? Mine is MacBook Air OS X... Thank you!!
-
NB100-12N - 120 GB shows only 56 + 51 GB
Hello When I check the properties of my hard drive I cannot summarize the specified 120 GB capacity (do not used but available).I get only about 56 + 51 GB split on drive C:\ and D:\. There is participation of the hard disk drive that are initially h
-
High temperature CPU on Satellite A215
Hello My Satellite A215 is 3 months old. I use coolfan 4.33. and my temperature is 89 degrees now... This is not normal. How is that possible? What should I do?
-
WhatsApp is not compatible with iOS 6.1.6
Hello Today I bought an iPod Touch 4th generation (iOS 6.1.6) a friend. I'll install some applications of my "Purchased" in my iTunes account section. When I get Whatsapp and move a little box pops up saying: it is not supported with this iPhone. I g
-
Updating BIOS for Satellite 1110-Z14
Does anyone know what the BIOS update is right for a Satellite 1110-Z14? It doesn't seem to be a specific list on the drop-down list for this machine. I was wondering if I need to use the Satellite 1100.