Posted in
Virtual Machine Manager |
No Comment | 1,132 views | 13/02/2014 17:10
You can add DVD devices into SCVMM 2012 R2 templates with this script:
1
2
3
4
5
6
7
8
| $Templates = Get-SCVMTemplate
foreach ($Template in $Templates)
{
$JobId = [System.Guid]::NewGuid().toString()
New-SCVirtualDVDDrive -JobGroup $JobId -Bus 0 -LUN 1
$Template | Set-SCVMTemplate -JobGroup $JobId
} |
$Templates = Get-SCVMTemplate
foreach ($Template in $Templates)
{
$JobId = [System.Guid]::NewGuid().toString()
New-SCVirtualDVDDrive -JobGroup $JobId -Bus 0 -LUN 1
$Template | Set-SCVMTemplate -JobGroup $JobId
}
All DVD devices will be on “Bus 0, Lun 1”. You can change it for different location.