Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Menu {
- param (
- [string]$Title = 'Scripts'
- )
- Clear-Host
- $host.ui.rawui.foregroundcolor = "Green"
- Write-Host "=============== $Title ==============="
- Write-Host ""
- Write-Host "1: Press '1' to Change User Install"
- Write-Host "2: Press '2' to Change User Execute"
- Write-Host "3: Press '3' to Change Logon Enable"
- Write-Host "4: Press '4' to Change Logon Drain"
- Write-Host "5: Press '5' to Change Logon Disable"
- Write-Host "6: Open Map Folder"
- Write-Host "Q: Press 'Q' to quit."
- }
- function MandateMap {
- param (
- [string]$Title = 'MAP'
- )
- Clear-Host
- $host.ui.rawui.foregroundcolor = "Cyan"
- Write-Host "=============== $Title ==============="
- Write-Host "01: Press '1' Map Mandant 01"
- Write-Host "02: Press '2' Map Mandant 11"
- Write-Host "03: Press '3' Map Mandant 13"
- Write-Host "04: Press '4' Map Mandant 14"
- Write-Host "05: Press '5' Map Mandant 15"
- Write-Host "06: Press '6' Map Mandant 16"
- Write-Host "07: Press '7' Map Mandant 17"
- Write-Host "08: Press '8' Map Mandant 18"
- Write-Host "09: Press '9' Map Mandant 19"
- Write-Host "10: Press '10' Map Mandant 20"
- Write-Host "11: Press '11' Map Mandant 21"
- Write-Host "12: Press '12' Map Mandant 22"
- Write-Host "13: Press '13' Map Mandant 23"
- Write-Host "14: Press '14' Map Mandant 26"
- Write-Host "15: Press '15' Map Mandant 58"
- Write-Host "16: Press '16' Map Mandant 75"
- Write-Host "17: Press '17' Map Mandant 81-83-85"
- Write-Host "18: Press '18' Map Mandant 86"
- Write-Host "19: Press '19' Map Mandant 88"
- Write-Host "Q: Press 'Q' to quit."
- }
- Function MenuOption1 {
- Write-Host 1
- pause
- }
- Function MenuOption2 {
- Write-Host 2
- pause
- }
- Function MenuOption3 {
- Write-Host 3
- pause
- }
- Function MenuOption4 {
- Write-Host 4
- pause
- }
- Function MenuOption5 {
- Write-Host 5
- pause
- }
- Function MenuOption6 {
- do {
- MandateMap
- $mandateMapSelection = Read-Host "Please make a selection"
- switch ($mandateMapSelection)
- {
- '1' {
- Clear-Host
- echo "Map Mandant 01"
- pause
- }
- '2' {
- Clear-Host
- echo "Map Mandant 11"
- pause
- }
- '3' {
- Clear-Host
- echo "Map Mandant 13"
- pause
- }
- '4' {
- Clear-Host
- echo "Map Mandant 14"
- pause
- }
- 'q' {
- return
- }
- }
- }
- until ($mandateMapSelection -eq 'q')
- }
- Function MenuOption7 {
- Write-Host 7
- pause
- }
- do {
- Menu
- $menuSelection = Read-Host "Please make a selection"
- switch ($menuSelection)
- {
- '1' {
- Clear-Host
- MenuOption1
- }
- '2' {
- Clear-Host
- MenuOption2
- }
- '3' {
- Clear-Host
- MenuOption3
- }
- '4' {
- Clear-Host
- MenuOption4
- }
- '5' {
- Clear-Host
- MenuOption5
- }
- '6' {
- Clear-Host
- MenuOption6
- }
- 'q' {
- return
- }
- }
- }
- until ($menuSelection -eq 'q')
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement