Advertisement
Guest User

for ReddevilQ

a guest
Oct 2nd, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. function Menu {
  2. param (
  3. [string]$Title = 'Scripts'
  4. )
  5. Clear-Host
  6. $host.ui.rawui.foregroundcolor = "Green"
  7. Write-Host "=============== $Title ==============="
  8. Write-Host ""
  9. Write-Host "1: Press '1' to Change User Install"
  10. Write-Host "2: Press '2' to Change User Execute"
  11. Write-Host "3: Press '3' to Change Logon Enable"
  12. Write-Host "4: Press '4' to Change Logon Drain"
  13. Write-Host "5: Press '5' to Change Logon Disable"
  14. Write-Host "6: Open Map Folder"
  15. Write-Host "Q: Press 'Q' to quit."
  16. }
  17.  
  18. function MandateMap {
  19. param (
  20. [string]$Title = 'MAP'
  21. )
  22. Clear-Host
  23. $host.ui.rawui.foregroundcolor = "Cyan"
  24. Write-Host "=============== $Title ==============="
  25. Write-Host "01: Press '1' Map Mandant 01"
  26. Write-Host "02: Press '2' Map Mandant 11"
  27. Write-Host "03: Press '3' Map Mandant 13"
  28. Write-Host "04: Press '4' Map Mandant 14"
  29. Write-Host "05: Press '5' Map Mandant 15"
  30. Write-Host "06: Press '6' Map Mandant 16"
  31. Write-Host "07: Press '7' Map Mandant 17"
  32. Write-Host "08: Press '8' Map Mandant 18"
  33. Write-Host "09: Press '9' Map Mandant 19"
  34. Write-Host "10: Press '10' Map Mandant 20"
  35. Write-Host "11: Press '11' Map Mandant 21"
  36. Write-Host "12: Press '12' Map Mandant 22"
  37. Write-Host "13: Press '13' Map Mandant 23"
  38. Write-Host "14: Press '14' Map Mandant 26"
  39. Write-Host "15: Press '15' Map Mandant 58"
  40. Write-Host "16: Press '16' Map Mandant 75"
  41. Write-Host "17: Press '17' Map Mandant 81-83-85"
  42. Write-Host "18: Press '18' Map Mandant 86"
  43. Write-Host "19: Press '19' Map Mandant 88"
  44. Write-Host "Q: Press 'Q' to quit."
  45. }
  46.  
  47.  
  48. Function MenuOption1 {
  49. Write-Host 1
  50. pause
  51. }
  52.  
  53. Function MenuOption2 {
  54. Write-Host 2
  55. pause
  56. }
  57.  
  58. Function MenuOption3 {
  59. Write-Host 3
  60. pause
  61. }
  62.  
  63. Function MenuOption4 {
  64. Write-Host 4
  65. pause
  66. }
  67.  
  68. Function MenuOption5 {
  69. Write-Host 5
  70. pause
  71. }
  72.  
  73. Function MenuOption6 {
  74. do {
  75. MandateMap
  76. $mandateMapSelection = Read-Host "Please make a selection"
  77. switch ($mandateMapSelection)
  78. {
  79. '1' {
  80. Clear-Host
  81. echo "Map Mandant 01"
  82. pause
  83. }
  84. '2' {
  85. Clear-Host
  86. echo "Map Mandant 11"
  87. pause
  88. }
  89. '3' {
  90. Clear-Host
  91. echo "Map Mandant 13"
  92. pause
  93. }
  94. '4' {
  95. Clear-Host
  96. echo "Map Mandant 14"
  97. pause
  98. }
  99. 'q' {
  100. return
  101.  
  102. }
  103. }
  104. }
  105. until ($mandateMapSelection -eq 'q')
  106. }
  107.  
  108. Function MenuOption7 {
  109. Write-Host 7
  110. pause
  111. }
  112.  
  113. do {
  114. Menu
  115. $menuSelection = Read-Host "Please make a selection"
  116. switch ($menuSelection)
  117. {
  118. '1' {
  119. Clear-Host
  120. MenuOption1
  121. }
  122. '2' {
  123. Clear-Host
  124. MenuOption2
  125. }
  126. '3' {
  127. Clear-Host
  128. MenuOption3
  129. }
  130. '4' {
  131. Clear-Host
  132. MenuOption4
  133. }
  134. '5' {
  135. Clear-Host
  136. MenuOption5
  137. }
  138. '6' {
  139. Clear-Host
  140. MenuOption6
  141. }
  142. 'q' {
  143. return
  144.  
  145. }
  146. }
  147. }
  148. until ($menuSelection -eq 'q')
  149.  
  150. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement