Fix custom

This commit is contained in:
2023-11-14 14:14:34 +01:00
parent 2504f30ee0
commit 88479e968e

View File

@@ -55,30 +55,37 @@ function Setup {
}
function Custom {
$Office = 0
$Users = 0
$EleveReg = 0
$RDP = 0
$Choco = 0
$ChocoApps = 0
$Update = 0
$input = Read-Host "Do you need to install Office? (y/n)"
if ($input -eq "y") {
$Office = $true
$Office = 1
}
$input = Read-Host "Do you need to setup users? (y/n)"
if ($input -eq "y") {
$Users = $true
$Users = 1
$input = Read-Host "Do you need to setup eleve registry? (y/n)"
if ($input -eq "y") {
$EleveReg = $true
$EleveReg = 1
}
}
$input = Read-Host "Do you need to enable RDP? (y/n)"
if ($input -eq "y") {
$RDP = $true
$RDP = 1
}
$input = Read-Host "Do you need to install chocolatey? (y/n)"
if ($input -eq "y") {
$Choco = $true
$Choco = 1
$input = Read-Host "Do you need to install chocolatey apps? (y/n)"
if ($input -eq "y") {
@@ -94,7 +101,7 @@ function Custom {
$input = Read-Host "Do you need to update windows? (y/n)"
if ($input -eq "y") {
$Update = $true
$Update = 1
}
SetupCustom -Office $Office -Users $Users -EleveReg $EleveReg -RDP $RDP -Choco $Choco -ChocoApps $ChocoApps -Update $Update
}