78 lines
2.2 KiB
PowerShell
78 lines
2.2 KiB
PowerShell
<#
|
|
.SYNOPSIS
|
|
Sepp's Knutseltoolbox voor Stichtingen
|
|
Dit script toont een eenvoudig menu om verschillende opdrachten of scripts van de Git-server uit te voeren.
|
|
|
|
.NOTES
|
|
Auteur: SMO
|
|
Versie: 1.0
|
|
#>
|
|
|
|
# --- hoofdmenu ---
|
|
function Show-MainMenu {
|
|
Clear-Host
|
|
|
|
Write-Host "==============================================================" -ForegroundColor Green
|
|
Write-Host " Sepp's Knutseltoolbox voor Stichting Staedion" -ForegroundColor Cyan
|
|
Write-Host "==============================================================" -ForegroundColor Green
|
|
Write-Host
|
|
Write-Host "Menu Opties:" -ForegroundColor White
|
|
Write-Host "[1] Windows10 OudeVPN configuratie verwijderen" -ForegroundColor Yellow
|
|
Write-Host "[2] Windows11 Bedrijfsportal installeren" -ForegroundColor Yellow
|
|
Write-Host "[3] Cris z'n Autopilot Hash Script ONLINE" -ForegroundColor Yellow
|
|
Write-Host "[4] Cris z'n Autopilot Hash Script OFFLINE" -ForegroundColor Yellow
|
|
# Voeg meer opties toe
|
|
Write-Host "[X] Afsluiten" -ForegroundColor Red
|
|
Write-Host
|
|
}
|
|
|
|
function Run-Script1 {
|
|
irm https://git.seppjm.com/smo/purge-aovpn/raw/branch/main/remove-aovpn.ps1 | iex
|
|
Pause
|
|
}
|
|
|
|
function Run-Script2 {
|
|
irm https://git.seppjm.com/smo/ps-tools/raw/branch/main/companyportal.ps1 | iex
|
|
Pause
|
|
}
|
|
function Run-Script3 {
|
|
irm https://git.seppjm.com/smo/ps-tools/raw/branch/main/cris-autopilot-online.ps1 | iex
|
|
Pause
|
|
}
|
|
function Run-Script4 {
|
|
irm https://git.seppjm.com/smo/ps-tools/raw/branch/main/cris-autopilot-offline.ps1 | iex
|
|
Pause
|
|
}
|
|
|
|
# --- loop om gebruikersinvoer op te vragen en uit te voeren ---
|
|
while ($true) {
|
|
Show-MainMenu
|
|
$choice = Read-Host "Maak een keuze uit het menu"
|
|
|
|
switch ($choice.ToUpper()) {
|
|
"1" {
|
|
Run-Script1
|
|
}
|
|
"2" {
|
|
Run-Script2
|
|
}
|
|
"3" {
|
|
Run-Script3
|
|
}
|
|
"4" {
|
|
Run-Script4
|
|
}
|
|
|
|
# Voeg hier meer genummerde opties toe
|
|
|
|
"X" {
|
|
Write-Host "Tot ziens!" -ForegroundColor Magenta
|
|
exit
|
|
}
|
|
default {
|
|
Write-Host "Ongeldige keuze. Probeer het nog eens." -ForegroundColor Red
|
|
Pause
|
|
}
|
|
}
|
|
}
|