<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VM Deployment with OS Customization Specification in VMware vSphere™ Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854176#M21893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: rgba(0, 0, 0, 0.87); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Roboto',arial,sans-serif; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre-wrap; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;this could help you:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;A href="https://www.metisit.com/blog/powercli-deploy-and-customize-a-vm-vcenter/" title="https://www.metisit.com/blog/powercli-deploy-and-customize-a-vm-vcenter/"&gt;PowerCLI – Deploy and customize a VM in vCenter – Metis IT&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Alessandro Romeo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2019 09:16:48 GMT</pubDate>
    <dc:creator>Alex_Romeo</dc:creator>
    <dc:date>2019-07-30T09:16:48Z</dc:date>
    <item>
      <title>VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854175#M21892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community &lt;SPAN class="emoticon_happy emoticon-inline"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm used to deploy new VM from template with Customization Specification Manager file I made under vCenter 6.5U3 GUI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For automation purposes, i'm trying to make PowerCLI (.ps1) scripts to ease VM deployment, right now i'm just at a test step (line by line execution) and just encounter a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Template details :&lt;/P&gt;&lt;P&gt;- OS Type : Windows&lt;/P&gt;&lt;P&gt;- Take the VM name as Windows' computer name&lt;/P&gt;&lt;P&gt;- Time : GMT +01:00&lt;/P&gt;&lt;P&gt;- 1x NIC who prompt user for IP adress only&amp;nbsp; (VLAN + netmask + gateway + DNS are already set in the template)&lt;/P&gt;&lt;P&gt;- add the vm into AD Domain&lt;/P&gt;&lt;P&gt;- Do not log in automatically as Administrator&lt;/P&gt;&lt;P&gt;- Sysprep +&amp;nbsp; generate new SID&lt;/P&gt;&lt;P&gt;- Registration info&amp;nbsp; : user : xxxx + Organization : xxxx&lt;/P&gt;&lt;P&gt;- Username and password already set too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is&amp;nbsp; that I'm able to deploy a new VM from template using PowerCli, but when I set -OSCustomizationSpec parameter to use my template, it didn't ask me the IP address, and it doesn't seems to use the VM name as Windows' computer name.&lt;/P&gt;&lt;P&gt;It doesn't seems that i can 100% use the template which was created on vCenter GUI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a problem from my CLI deployment or a known bug ? Do I have to recreate again the same template but for CLI ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 08:23:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854175#M21892</guid>
      <dc:creator>GaelV</dc:creator>
      <dc:date>2019-07-30T08:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854176#M21893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: rgba(0, 0, 0, 0.87); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Roboto',arial,sans-serif; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre-wrap; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;this could help you:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;A href="https://www.metisit.com/blog/powercli-deploy-and-customize-a-vm-vcenter/" title="https://www.metisit.com/blog/powercli-deploy-and-customize-a-vm-vcenter/"&gt;PowerCLI – Deploy and customize a VM in vCenter – Metis IT&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Alessandro Romeo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 09:16:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854176#M21893</guid>
      <dc:creator>Alex_Romeo</dc:creator>
      <dc:date>2019-07-30T09:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854177#M21894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just read the script and it seems to don't use any OSCustomization template, it make the deal but it's kind of wordy (write each time cpu, ram etc... whereas i already package it on a vcenter customization template)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there's something to do with &lt;SPAN class="hpui-primary-text1"&gt;OSCustomizationNicMapping function but i can't manage it ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 11:44:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854177#M21894</guid>
      <dc:creator>GaelV</dc:creator>
      <dc:date>2019-07-30T11:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854178#M21895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.businessnewsdaily.com/11038-use-powercli-vsphere-deployment.html" title="https://www.businessnewsdaily.com/11038-use-powercli-vsphere-deployment.html"&gt;How to Deploy Virtual Machines in vSphere Using PowerCLI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Virtual machine templates:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To create a template, create a new virtual machine, install the OS and configure any settings you would like to standardize with future virtual machines. Then you either clone or convert that virtual machine for a template.&lt;/P&gt;&lt;P&gt;Here is an example of cloning a new template called "Win7Template" from the VM "Win7VM".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;C:&amp;gt; New-Template -VM 'Win2012VM' -Name "Server2012R2Template" -Datastore 'TestDatastore' -Location 'TestLocation'&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'PT Sans',Arial,sans-serif; font-size: 16px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 27px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;OS Customization:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OS customization specifications are used to automate certain settings and tasks such as setting a computer's hostname and joining a computer to a domain. To create an OS specification we use the cmdlet New-OSCustomizationSpec in PowerCLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;I created a new OS spec named "&lt;STRONG&gt;WindowsServer2012&lt;/STRONG&gt;". I included the local administrator password, domain name, domain joining credentials, OS type, time zone and product key to be used. Note by default the network settings are configured for DHCP. You can set a static IP with the cmdlet New-OSCustomizationNicMapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;C:&amp;gt; New-OSCustomizationSpec -Name 'WindowsServer2012' -FullName 'TestName' -OrgName 'TestOrg' -OSType Windows -ChangeSid -AdminPassword (Read-Host -AsSecureString) -Domain 'DOMAIN' -TimeZone 035 -DomainCredentials (Get-Credential) -ProductKey '1111-1111-1111-1111' -AutoLogonCount 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;Deploy a virtual machine from a template and customize settings:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have a VM template and OS customization specs, I can build a new virtual machine that will have the OS installed, be joined to a domain, set the product key and have the time zone set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;First, I place my OS Customization specs in the variable $OSSpecs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;&lt;STRONG&gt;$OSSpecs = Get-OSCustomizationSpec -Name 'WindowsServer2012'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;Next, I place my VM template in a variable called $VMTemplate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;$VMTemplate = Get-Template -Name 'Server2012R2Template'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;Finally, I deploy my VM with the New-VM cmdlet using my template and OS specs. I place the VM on the "VMHost-1" ESXi host and store the VM on the "TestDatastore" datastore.&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'PT Sans',Arial,sans-serif; font-size: 16px; font-size-adjust: none; font-stretch: 100%; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 27px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;New-VM -Name 'TestVM' -Template $VMTemplate -&lt;STRONG&gt;OSCustomizationSpec $OSSpec&lt;/STRONG&gt; -VMHost 'VMHost-1' -Datastore 'TestDatastore&lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;&lt;A href="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/85a74cac-7b7b-45b0-b850-00ca08d1f238/ae65ebd9-158b-4f31-aa9c-4bbdc724cc38/doc/Set-OSCustomizationSpec.html" title="https://vdc-repo.vmware.com/vmwb-repository/dcr-public/85a74cac-7b7b-45b0-b850-00ca08d1f238/ae65ebd9-158b-4f31-aa9c-4bbdc724cc38/doc/Set-OSCustomizationSpec.html"&gt;Set-OSCustomizationSpec - PowerCLI VMware.VimAutomation.Core Help Reference&lt;/A&gt; &lt;/P&gt;&lt;P style="color: #333333; font-family: &amp;amp;font-size:20px; font-style: normal; font-weight: 400; margin-bottom: 20px; margin-top: 20px; text-align: left; text-indent: 0px; border-color: #333333; border-style: none;"&gt;Alessandro Romeo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 14:03:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854178#M21895</guid>
      <dc:creator>Alex_Romeo</dc:creator>
      <dc:date>2019-07-30T14:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854179#M21896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answering,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i follow your example, the GUI specify to "prompt the user for ip address", i have the same behaviour in mine, but when you try to deploy a new vm with the same specification by using PowerCLI, it didn't prompt the ip address and i think we have to specify each parameters manually isn't it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if i use "Set-OSCustomizationNicMapping" to my deploy command line, i'm afraid it will duplicate some settings I've already set using the GUI (dns server, ip to be prompted , netmask etc...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 14:15:30 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854179#M21896</guid>
      <dc:creator>GaelV</dc:creator>
      <dc:date>2019-07-30T14:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854180#M21897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: rgba(0, 0, 0, 0.87); text-transform: none; line-height: 28px; text-indent: 0px; letter-spacing: normal; font-family: 'Roboto',arial,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre-wrap; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;Hi,&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-position: repeat; color: rgba(0, 0, 0, 0.87); font-family: &amp;amp;font-size:18px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;" title=""&gt;If you want to be sure, remove them from the customization and insert them into the PowerCli.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-position: repeat; color: rgba(0, 0, 0, 0.87); font-family: &amp;amp;font-size:18px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;" title=""&gt;Or &lt;/SPAN&gt;&lt;SPAN style="-webkit-text-stroke-width: 0px; color: rgba(0, 0, 0, 0.87); white-space: pre-wrap; font-weight: 400; letter-spacing: normal; text-decoration: none; display: inline !important; font-style: normal; background-position: repeat; float: none; background-color: transparent; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: 'Roboto',arial,sans-serif; orphans: 2; text-align: left;"&gt;you can get the addresses by taking them from a CSV file, or set the ipmode = 'PromptUser' parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: consolas; font-size: 16px; font-style: italic; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Set-OSCustomizationNicMapping &lt;STRONG&gt;–IpMode UseStaticIP&lt;/STRONG&gt; –IpAddress “192.168.0.101” –SubnetMask “255.255.252.0” –DefaultGateway “192.168.0.1” –Dns “192.168.0.10”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-indent: 0px; font-weight: 400; font-size: 16px; font-family: consolas; font-style: italic; text-align: left;"&gt;New-OSCustomizationNicMapping –OSCustomizationSpec “BasicWindowsSpec” &lt;STRONG&gt;–IpMode UseDhcp&lt;/STRONG&gt; –Dns “192.168.0.10”, “192.168.0.20” –Wins “192.168.0.030”, “192.168.0.40”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-indent: 0px; font-weight: 400; font-size: 16px; font-family: consolas; font-style: italic; text-align: left;"&gt;&lt;SPAN style="color: #000000; font-family: consolas; font-size: 16px; font-style: italic; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Set-OSCustomizationNicMapping &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: consolas; font-size: 16px; font-style: italic; font-weight: bold; text-align: left; text-indent: 0px;"&gt;&lt;STRONG&gt;–IpMode promptUser&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: consolas; font-size: 16px; font-style: italic; font-weight: 400; text-align: left; text-indent: 0px;"&gt; –IpAddress “192.168.0.101” –SubnetMask “255.255.252.0” –DefaultGateway “192.168.0.1” –Dns “192.168.0.10”&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: consolas; font-size: 16px; font-style: italic; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;A href="https://code.vmware.com/forums/2530/vsphere-powercli#572264" title="https://code.vmware.com/forums/2530/vsphere-powercli#572264"&gt;VMware PowerCLI Forum - VMware {code}&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: consolas; font-size: 16px; font-style: italic; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;A href="http://kb.kaminskiengineering.com/node/353" title="http://kb.kaminskiengineering.com/node/353"&gt;http://kb.kaminskiengineering.com/node/353&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-position: repeat; color: rgba(0, 0, 0, 0.87); font-family: &amp;amp;font-size:18px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;" title=""&gt;Alessandro Romeo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 14:58:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854180#M21897</guid>
      <dc:creator>Alex_Romeo</dc:creator>
      <dc:date>2019-07-30T14:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854181#M21898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried the one with "UseStaticIP" parameter because it could help me in the future for using .csv doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i still got an error with my cli (i didn't paste the $VMHost, $Template and $Spec but they're ok)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15645657641819561" data-renderedposition="92_8_1232_112" jivemacro_uid="_15645657641819561"&gt;&lt;P&gt;PS C:\&amp;gt; New-VM -Name 'WEB001' -VMHost $VMHost -Datastore 'DST_XXX' -Template $Template -OSCustomizationSpec $Spec | Set-OSCustomizationNicMapping -IPmode UseStaticIP -IpAddress "192.168.0.1" -SubnetMask "255.255.255.0" -DefaultGateway "192.168.0.1" -Dns "X.X.X.X.X","X.X.X.X.X"&lt;/P&gt;&lt;P&gt;New-VM : 31/07/2019 11:30:12 New-VM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Server task failed: A specified parameter was not correct: nicsettings:adapter:ip&lt;/P&gt;&lt;P&gt;Au caractère Ligne:1 : 1&lt;/P&gt;&lt;P&gt;+ New-VM -Name 'WEB001' -VMHost $VMHost -Datastore 'DST_XXX ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [New-VM], VimException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : Security_Impl_TaskResultConverter_TaskNotSucceeded,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with simple quote and double quote, nothing changes, i've also tried with only one DNS... but still the same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 09:37:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854181#M21898</guid>
      <dc:creator>GaelV</dc:creator>
      <dc:date>2019-07-31T09:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854182#M21899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: rgba(0, 0, 0, 0.87); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Roboto',arial,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre-wrap; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;The network parameters must be entered without quotes and &lt;SPAN style="text-align: left; color: #666666; text-transform: none; line-height: 18px; text-indent: 0px; letter-spacing: normal; font-family: 'proxima-nova','Arial',sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; font-size-adjust: none; font-stretch: 100%; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;double quote.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: rgba(0, 0, 0, 0.87); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Roboto',arial,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre-wrap; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;&lt;SPAN style="text-align: left; color: #666666; text-transform: none; line-height: 18px; text-indent: 0px; letter-spacing: normal; font-family: 'proxima-nova','Arial',sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; orphans: 2; font-size-adjust: none; font-stretch: 100%; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;T&lt;SPAN style="text-align: left; color: rgba(0, 0, 0, 0.87); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Roboto',arial,sans-serif; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre-wrap; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;he double DNS must be separated by a comma.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-align: left; color: rgba(0, 0, 0, 0.87); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Roboto',arial,sans-serif; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre-wrap; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: transparent;"&gt;Try like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New-VM -Name 'WEB001' -VMHost $VMHost -Datastore 'DST_XXX' -Template $Template -OSCustomizationSpec $Spec | Set-OSCustomizationNicMapping -IPmode UseStaticIP -IpAddress 192.168.0.1 -SubnetMask 255.255.255.0 -DefaultGateway 192.168.0.1 -Dns X.X.X.X.X,X.X.X.X.X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/Set-OSCustomizationNicMapping.html?src=vmw_so_vex_jmcca_429" style="color: #2989c5; font-family: &amp;amp;font-size:14px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;" title="https://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/Set-OSCustomizationNicMapping.html?src=vmw_so_vex_jmcca_429"&gt;Set-OSCustomizationNicMapping&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;--------------&amp;nbsp; Example 3 --------------&lt;BR /&gt;&lt;BR /&gt;C:\PS&amp;gt;Get-OSCustomizationSpec mySpec | Get-OSCustomizationNicMapping | &lt;STRONG&gt;Set-OSCus&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;tomizationNicMapping -IpMode UseStaticIp -IpAddress 10.10.0.1 -SubnetMask 255.25&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;5.255.0 -DefaultGateway 10.10.0.1 -AlternateGateway 10.10.0.1 -Dns 10.10.150.1 -&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PrimaryWins 10.10.150.2&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alessandro Romeo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 10:24:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854182#M21899</guid>
      <dc:creator>Alex_Romeo</dc:creator>
      <dc:date>2019-07-31T10:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854183#M21900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still the same error as i had about nicsettings adapter...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15650812630979256 jive_text_macro" data-renderedposition="92_8_1232_96" jivemacro_uid="_15650812630979256"&gt;&lt;P&gt;New-VM : 06/08/2019 10:44:29&amp;nbsp;&amp;nbsp;&amp;nbsp; New-VM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Server task failed: A specified parameter was not correct: nicsettings:adapter:ip&lt;/P&gt;&lt;P&gt;Au caractère Ligne:1 : 1&lt;/P&gt;&lt;P&gt;+ New-VM -Name 'WEB001' -VMHost $VMHost -Datastore 'DST_SYS' ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [New-VM], VimException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : Security_Impl_TaskResultConverter_TaskNotSucceeded,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;weird isn't it ? i only have 1 nic adapter on my template. Maybe i have to specify it ? I give a try with the "Position 1" parameter, i think it will works ! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 08:48:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854183#M21900</guid>
      <dc:creator>GaelV</dc:creator>
      <dc:date>2019-08-06T08:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854184#M21901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;AlessandroRomeo68&lt;/B&gt;​&amp;nbsp; any ideas ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried other settings but still the same error..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 11:46:34 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854184#M21901</guid>
      <dc:creator>GaelV</dc:creator>
      <dc:date>2019-08-08T11:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854185#M21902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;A href="http://powershelldistrict.com/powercli-oscustomizationspec/" title="http://powershelldistrict.com/powercli-oscustomizationspec/"&gt;How to automate VMWare VM creation using powercli oscustomizationspec -&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:54:45 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854185#M21902</guid>
      <dc:creator>Alex_Romeo</dc:creator>
      <dc:date>2019-08-08T14:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854186#M21903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just did the tutorial on the link you posted, but still got an issue :&lt;/P&gt;&lt;P&gt;My win2016 template got only 1 nic, my OSCustomizationNicMapping one too, but when I want to deploy my VM it ends at 97% with this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/13125iEB2991DC624C1695/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 13:28:31 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854186#M21903</guid>
      <dc:creator>GaelV</dc:creator>
      <dc:date>2019-08-14T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: VM Deployment with OS Customization Specification</title>
      <link>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854187#M21904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the problem here is taht you have more than 1 NIC in your template and trying do customize just 1 NIC. Remove te additional NIC and try again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 14:20:58 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-vSphere-Discussions/VM-Deployment-with-OS-Customization-Specification/m-p/1854187#M21904</guid>
      <dc:creator>RodrigoCBelmont</dc:creator>
      <dc:date>2020-05-21T14:20:58Z</dc:date>
    </item>
  </channel>
</rss>

