Quantcast
Channel: VMware Communities : Blog List - All Communities
Viewing all articles
Browse latest Browse all 3135

Blank VMs Creation for Citirx

$
0
0

Hello All,

 

Below are the powercli script to help to deploy bulk blank virtual machines quickly instead of create manually.

 

=====================================================================================================================

<#

.SYNOPSIS

        Citrix VMs Shell Creation

    .DESCRIPTION

        This script is for Deploy Multiples Blank Virtual Machines Shells for Citrx VMs which are streaming from Gold Image

    .NOTES

        Author: Nawal Singh

  Date: 03/05/2019

 

    #>

#Connection to vCenter

 

 

$mycred = Get-Credential

Connect-VIServer "vcs01.domain.local" -Credential $mycred

 

Write-Progress -Activity "Deploying VM's" -Status "Working" ;

 

New-VM -VMHost "vSphere_ESX_01.domain.local" -Name VMCTX01 -Datastore VMFS_DS_01 -NumCpu 6 -MemoryGB 16 -DiskGB 20 -DiskStorageFormat Thin -PortGroup PG_VLAN_101  -Floppy -CD -location Citrix -GuestId windows7Server64Guest

New-VM -VMHost "vSphere_ESX_02.domain.local" -Name VMCTX02 -Datastore VMFS_DS_01 -NumCpu 6 -MemoryGB 16 -DiskGB 20 -DiskStorageFormat Thin -PortGroup PG_VLAN_101  -Floppy -CD -location Citrix -GuestId windows7Server64Guest

New-VM -VMHost "vSphere_ESX_03.domain.local" -Name VMCTX03 -Datastore VMFS_DS_02 -NumCpu 6 -MemoryGB 16 -DiskGB 20 -DiskStorageFormat Thin -PortGroup PG_VLAN_101  -Floppy -CD -location Citrix -GuestId windows7Server64Guest

New-VM -VMHost "vSphere_ESX_04.domain.local" -Name VMCTX04 -Datastore VMFS_DS_02 -NumCpu 6 -MemoryGB 16 -DiskGB 20 -DiskStorageFormat Thin -PortGroup PG_VLAN_101  -Floppy -CD -location Citrix -GuestId windows7Server64Guest

 

Disconnect-VIServer -Server *  -Force -Confirm:$false

 

==========================================================================================================================

 

 


Viewing all articles
Browse latest Browse all 3135

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>