Change the name of the client VM with PowerShell

Hello

I'm in a bit of trouble with a script PowerCLI so maybe some of you can help me because I just watched using PowerCLI. I work for a software company witch it assign tests, and I need to configure virtual machines in our data center. I managed to create a script for virtual machine cloning, but I need someone else to change the name of the guest OS (XP, 2008, 7) with the name of the virtual machine that appears in vCenter. I found a command "-OSCustomizationSpec", but it does not work for me ( http://communities.vmware.com/message/1562254 ).

Thanks in advance

Greetings, @adispy-

Background, in case you didn't know: to use the parameter - OSCustomizationSpec to New-VM or Set-VM, you must have an OSCustomizationSpec (OSC) of some sort.  A couple of ways that you can create a CSOS: in vCenter via either the client vSphere (Home-> Manager Customization specifications), or in PowerShell via New-OSCustomizationSpec.  This cmdlet also lets you create a non-persistent OSC that exists only in your PowerShell session.

Once you have a valid OSC, you can apply it to the new VM to deploy time (using New - VM either clone an existing virtual machine or to deploy from a model), or after the new virtual machine is deployed using Set-VM.

adispy wrote:
... I found a command "-OSCustomizationSpec", but it does not work for me ( http://communities.vmware.com/message/1562254 )...

How you try to use the parameter - OSCustomizationSpec (perhaps a sample of your code problem), and what error (s) are you?

Tags: VMware

Similar Questions

  • I need to change the default 'open with' Bridge of photoshop to photoshop CC 2015.  How do I do that?

    I need to change the default 'open with' Bridge of photoshop to photoshop CC 2015.  How do I do that?

    Hi karen,.

    It can get a bit tangled. Bridge delay normally to some think the Finder is the default, and every OS has its own way for you to tell the OS what you say should be the default value. On Mac, it's in the file information dialog box. I think that Windows called something like properties. You can change an extension to open all files with an application in your operating system first, restart Bridge and see if she pays tribute to this choice by double clicking on a file and observing that it opens the right version of PS. normally, it will be. (By default) must also appear after this choice in the list open with contextual (right click on the file you want to open, select open with and find the name of the application in the list).

    If this does not work, you will need to manually choose your file association for the extension of the list next to him in the Bridge preferences > File Associations. Which is normally necessary only when you want to override the default choice of your OS System. For example, maybe you want to bridge to open in PS JPEG files when you double-click it in Bridge, but if you double-click on a file in the Finder/Explorer JPEG, you want to open with Viewer of this system. It will not say it is (by default) in the pop-up list more, but bridge will honor your file associated with the choice of your system.

  • I changed the my imac with a new drive and I lost the original CD/DVD which came with the new Mac.

    I changed the my imac with a new drive and I lost the original CD/DVD which came with the new Mac.

    and when I go to install the mac lion antiracism apple with reticle logo means error

    what can I do with these

    Please help money

    You can get the replacement system install & Restore CD/DVD of the customer support of Apple - to the United States, (800) 767-2775-for a sum low S & h. you will need to have the model or the serial number of your Mac available.

    If you are not in the United States, you may need to go through the regional Apple Store that serves your location to find the phone number. Here is a list of links to all - http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html , another resource: International Support Phone #s.

  • Change the Bitlocker pin with Admin rights

    Hi, is it possible to change the Bitlocker PIN with admin rights

    Also where that PIN is stored?

    Thanks in advance

    The answer is to write a windows service and have a program to interact with this service and have it launch the locker of bit program.

    Because the service runs under the system account, the program run by there the higher privilege.

  • Change the icons associated with files - it is still possible; It was child's play.

    How can I change the icon associated with a file? For example, if I change the default program for an .ini file, the default icon of a page with a gear in the corner becomes a simple page and I'd rather the icon does not change... just the program I use to open the file. In the previous veersions of Windows, if you want to change the icon associated with a file, you could simply enter properties and continue. Please advise on how to adopt this change of WinVista Home Premium.

    It is not easy and involves editing the registry (this is far from as easy it was XP, that's why you're having trouble).  Here is the procedure: http://www.webtlk.com/2009/03/20/how-to-change-the-icon-assiciated-with-a-file-in-windows-vista-and-windows-7/.  I recommend before starting that you back up your registry database just to be safe.  Here's how: http://www.adamsdvds.co.uk/tutorials/vista/regedit/backup.php.

    I hope this helps.

    Good luck! Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can I change the country associated with my account. I need to make an urgent purchase?

    I need to make a purchase, and I can't do it because I need to change the country associated with my account. What is the best way to do it without re-creating a new account?

    That's the best you can do (with the help of Adobe):

    Change the country associated with your Adobe ID

  • Cannot change the ASPX page with Webdav connection

    I can't change the ASPX pages with webdav on my IIS6/win03 server connection. I connect to the site very much, but when I press the edit button I get an error message stating 'cannot lock the page for editing at the moment. Try again later. "I can edit pages html very well. I can edit ASPX pages if my connection is set to network and I am on a network share. I have even another server where I can connect with webdav and editing ASPX pages.

    Looks like a configuration problem on this particular server, but I have no idea what it is, and I can't find answers. Anyone had this problem before? How did you solve this problem?

    I tried to delete the LCK and defining files and the files from scratch, no luck.

    THX

    OK, I thought about it. If you run 2 sites in IIS, you must take pages aspx on extensions to the application. Go to the properties on the site that you have the connection to via Webdav and click the configuration button. Remove the entry for the aspx extension.

    I guess this is the answer for people having problems with other pages such as php and asp, server-side

  • How to change the Total report with a different name

    Hello

    I have a report and the last line display total report (using default apex - check check sum).

    My last appear as follows: full report | 10. 20. 30. 2 ¾ 100

    What I want to do is to change the name of 'total report' "Grand Total" or something else of my taste. Is - it there anyway that I can can be achieved. Any help would be appreciated.

    Thank you

    Matt

    On the report attributes tab, find the section break, formatting is a text box labeled: view this text when you print the report amounts, you can enter your text to replace the total report...

    Thank you

    Tony Miller
    Webster, TX

  • Change the email associated with jam Zone account?

    For reasons beyond our control, we will be no longer able to use the email address that we have signed with the BlackBerry Jam area and I was wondering if you would be able to help me change?

    I have managed to change the name and the name of the company, but can't seem to pass the address of e-mail. The first and last name fields jam Zone also continue to change after what they have been updated which is also very frustrating.

    I sent to [email protected] who told me that they are not able to help with this type of applications. They directed me to contact [email protected] that could also help. They directed me here, so here I am. As you can see, I got the race a bit on this rather than get a straight answer. It's very frustrating.

    Any help would be greatly appreciated.

    The e-mail address used in BlackBerry Jam area is related to your BlackBerry ID account  Once you change there, it should also be updated in jam area.  See this link for more information.

    Change your BlackBerry ID password, username and other info

  • Change the title associated with my site which is displayed in the results of the research

    I need to change the title of my search results so that it indicates the name of my company. At present it is a draw of names of products and that is that displayed my title when I search in Google, Safari, etc.. I was able to change the title of the Page according to the properties of the Page, but I can't understand how to change the title that appears when I search for my company's website. I've attached an example I found online and circled what I have to change in the event that someone does not understand what I'm talking about.

    Screen Shot 2014-10-07 at 4.43.22 PM.png

    It is something that is determined by the time when the Google bots crawl your site again to gather fresh information. It can take days or weeks or longer. You try to add your pages with updates here, if that helps: https://www.google.com/webmasters/tools/submit-url?continue=/addurl&pli=1

    See you soon,.

    Vikas

  • How can I change the email associated with my account of Firefox on my computer?

    In the right corner where my drop-down list is - it's showing an old email address that I am about to cancel. I have a new email address I'd like to enter but I can't seem to find the right place to enter. I found the place to change the password, but my only option is to change the password or delete the account. Y at - it somewhere else, can I change email address?
    Thank you!

    If you are talking about this forum (you did not mention Sync),
    go to the top of any page of Mozilla.org . Left-click the arrow down
    next to your name and select Edit profile. Find your email address, and
    on his right side, press on change.

  • How can I change the beige tabs with white text to the text of the tabs beige with black (or another dark color)?

    Classic restoration changed by FF 29 tabs beige with black text on the tab active and beige with white text on other open tabs. The white text is not visible. How can I change the text in white with a darker color?
    If this cannot be done, is there a way to reinstall FF 29 with just the security updates (and not all the other stuff) so that I can keep my 28 FF settings? Thank you.

    1. Open the modules (Ctrl + Shift + A Manager; Mac: Command + shift + A), then the Extensions category.
    2. Beside the classical restaurant theme, click on the Options button.
    3. Click the custom colors tab, then the less than (active/hover/default) tab.
    4. Below (active) tab, check 'Text', then click on the color swatch and choose black.
    5. Click the tab (unread) / new tab.
    6. (Unread) tab, check 'Text', then click on the color swatch and choose black.
  • Equim M40x: DVD player will not change the region even with 1 change remaining

    I have a Toshiba Equim M40x with a carpet * a DVD - Ram drive 830 s. My children recently tried to play a region 2 dvd and it failed with the message the DVD player is set in a different region.

    When I went into Device Manager to change the region (it was set to 1), it showed that I had a chance to change.
    However, when I tried to change it, I received an error message: "unable to update region setting. Please make sure the drive contains a region 2 media and you have the privilege of the administration. »

    I tried to put a region 2 dvd in the drive and I have the privilege of the administration and it still does not work.
    I then went looking for firmware free region for this disc, and of course, it does not exist.

    Help!

    Hello

    It of not possible to unlock the DVD player on a legal way.
    Of course, I found many sites that suggest that it of possible to unlock the firmware flash drive.
    But believe me; It is not desirable and very risky!
    You may damage the disc and then you can not read or burn CD or DVD media!

    I assume that you have already changed the region 5 times code. In such cases, it s already locked.

  • Programmatically change the SMU-2529 with NISE topology

    Hello!

    I have an SMU-2529 control by NISE to test certain products. These products require the topology of the matrix to change while I'm testing them.

    Is it possible to do it by programming?

    Opening/closing session NISE can be solution (although I prefer not to close), but I can't find an option string xorking to change the topology...

    Any ideas?

    Thank you!

    zyl7,

    Unfortunately there is no way to change the topology on the fly with NI Switch Executive. A better method would be to have two virtual devices NISE, one for 4 x 32 2 son configuration and the other for configuration 8 x 16 2 son. You close the NISE of VirtualDevice1 session and log on to VirtualDevice2 that references the same material. Of course, you should make sure that external connections are properly connected, but that should change the topology for you.

    Note: Logoff the NISE to VirtualDevice1 and opening the session NISE to VirtualDevice2 will reset the switch module and cause any previous connections open.

    I hope this helps!

  • How can I change the icon associated with an external hard drive that is displayed in my computer

    When I double click the icon my computer on my Seagate external desktop hard drive does not display the correct icon. It displays a blank page with the upper right handed with a superimposed replica of a small screen.  I really want to show an icon that looks like the real thing as stated in the icons folder.

    Hi PhilipRoebuck,

    (1) do you get an error message when you try to open the external hard drive?
    (2) where there are changes to the computer before the question?
    (3) is confined to a specific icon?
     
    See the following:
    Method 1:
    Icons change incorrectly in Windows
    Important Before run you this difficulty, save your data and close the application. After you run the difficulty, your computer will reboot after 10 minutes.
    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:
    How to back up and restore the registry in Windows
    http://support.Microsoft.com/kb/322756
     
    Method 2:
    How to change the default icons for folders in Windows XP
     
    I hope this helps.

Maybe you are looking for