Skip to content

Commit

Permalink
fixes for SCVMM2022 install
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromirk committed Mar 31, 2022
1 parent 33730c9 commit 55ddef1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Scripts/2_CreateParentDisks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,10 @@ If (-not $isAdmin) {
if ($DC.AutomaticCheckpointsEnabled -eq $True){
$DC | Set-VM -AutomaticCheckpointsEnabled $False
}
if ($LabConfig.InstallSCVMM -eq "Yes"){
#SCVMM 2022 requires 4GB of memory
$DC | Set-VMMemory -StartupBytes 4GB -MinimumBytes 4GB
}

#Apply Unattend to VM
if ($VMVersion.Build -ge 17763){
Expand Down Expand Up @@ -1017,8 +1021,12 @@ If (-not $isAdmin) {
Invoke-Command -VMGuid $DC.id -Credential $cred -ScriptBlock {
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process -Force
d:\scvmm\1_SQL_Install.ps1
d:\scvmm\2_ADK_Install.ps1
Restart-Computer
d:\scvmm\2_ADK_Install.ps1
#install prereqs
if (Test-Path "D:\SCVMM\SCVMM\Prerequisites\VCRedist\amd64\vcredist_x64.exe"){
Start-Process -FilePath "D:\SCVMM\SCVMM\Prerequisites\VCRedist\amd64\vcredist_x64.exe" -ArgumentList "/passive /quiet /norestart" -Wait
}
Restart-Computer
}
Start-Sleep 10

Expand Down

0 comments on commit 55ddef1

Please sign in to comment.