<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Powershell 多級菜單設置

      function mainMenu {
          $mainMenu = 'X'
          while($mainMenu -ne ''){
              Clear-Host
              Write-Host "`n`t`t My Script`n"
              Write-Host -ForegroundColor Cyan "Main Menu"
              Write-Host -ForegroundColor DarkCyan -NoNewline "`n["; Write-Host -NoNewline "1"; Write-Host -ForegroundColor DarkCyan -NoNewline "]"; `
                  Write-Host -ForegroundColor DarkCyan " Submenu1"
              Write-Host -ForegroundColor DarkCyan -NoNewline "`n["; Write-Host -NoNewline "2"; Write-Host -ForegroundColor DarkCyan -NoNewline "]"; `
                  Write-Host -ForegroundColor DarkCyan " Submenu2"
              $mainMenu = Read-Host "`nSelection (leave blank to quit)"
              # Launch submenu1
              if($mainMenu -eq 1){
                  subMenu1
              }
              # Launch submenu2
              if($mainMenu -eq 2){
                  subMenu2
              }
          }
      }
      
      function subMenu1 {
          $subMenu1 = 'X'
          while($subMenu1 -ne ''){
              Clear-Host
              Write-Host "`n`t`t My Script`n"
              Write-Host -ForegroundColor Cyan "Sub Menu 1"
              Write-Host -ForegroundColor DarkCyan -NoNewline "`n["; Write-Host -NoNewline "1"; Write-Host -ForegroundColor DarkCyan -NoNewline "]"; `
                  Write-Host -ForegroundColor DarkCyan " Say hello"
              Write-Host -ForegroundColor DarkCyan -NoNewline "`n["; Write-Host -NoNewline "2"; Write-Host -ForegroundColor DarkCyan -NoNewline "]"; `
                  Write-Host -ForegroundColor DarkCyan " Say goodbye"
              $subMenu1 = Read-Host "`nSelection (leave blank to quit)"
              $timeStamp = Get-Date -Uformat %m%d%y%H%M
              # Option 1
              if($subMenu1 -eq 1){
                  Write-Host 'Hello!'
                  # Pause and wait for input before going back to the menu
                  Write-Host -ForegroundColor DarkCyan "`nScript execution complete."
                  Write-Host "`nPress any key to return to the previous menu"
                  [void][System.Console]::ReadKey($true)
              }
              # Option 2
              if($subMenu1 -eq 2){
                  Write-Host 'Goodbye!'
                  # Pause and wait for input before going back to the menu
                  Write-Host -ForegroundColor DarkCyan "`nScript execution complete."
                  Write-Host "`nPress any key to return to the previous menu"
                  [void][System.Console]::ReadKey($true)
              }
          }
      }
      
      function subMenu2 {
          $subMenu2 = 'X'
          while($subMenu2 -ne ''){
              Clear-Host
              Write-Host "`n`t`t My Script`n"
              Write-Host -ForegroundColor Cyan "Sub Menu 2"
              Write-Host -ForegroundColor DarkCyan -NoNewline "`n["; Write-Host -NoNewline "1"; Write-Host -ForegroundColor DarkCyan -NoNewline "]"; `
                  Write-Host -ForegroundColor DarkCyan " Show processes"
              Write-Host -ForegroundColor DarkCyan -NoNewline "`n["; Write-Host -NoNewline "2"; Write-Host -ForegroundColor DarkCyan -NoNewline "]"; `
                  Write-Host -ForegroundColor DarkCyan " Show PS Version"
              $subMenu2 = Read-Host "`nSelection (leave blank to quit)"
              $timeStamp = Get-Date -Uformat %m%d%y%H%M
              # Option 1
              if($subMenu2 -eq 1){
                  Get-Process
                  # Pause and wait for input before going back to the menu
                  Write-Host -ForegroundColor DarkCyan "`nScript execution complete."
                  Write-Host "`nPress any key to return to the previous menu"
                  [void][System.Console]::ReadKey($true)
                  pause
              }
              # Option 2
              if($subMenu2 -eq 2){
                  $PSVersionTable.PSVersion
                  # Pause and wait for input before going back to the menu
                  Write-Host -ForegroundColor DarkCyan "`nScript execution complete."
                  Write-Host "`nPress any key to return to the previous menu"
                  [void][System.Console]::ReadKey($true)
                  pause
              }
              if ($subMenu2 -eq 3){
                  $username = Read-Host("`nEnter domain user account")
                  if($username -ne "`0"){
                      net user $username /domain
                      pause
                      [void][System.Console]::ReadKey($true)
                      
                     }else{
                          echo "Invalid entry"
                          [void][System.Console]::ReadKey($true)
      
                     }
                  }
          }
      }
      mainMenu
      

        

      posted @ 2025-08-06 15:38  tec2019  閱讀(8)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 国产精品久久毛片| 激情的视频一区二区三区| 和艳妇在厨房好爽在线观看| 日本深夜福利在线观看| 亚洲一区中文字幕人妻| 免费观看全黄做爰大片| 国产精品一区二区三区四区| 亚洲国产在一区二区三区| 欧美视频精品免费覌看| 久久人妻无码一区二区三区av| 精品国精品无码自拍自在线| 日韩av在线不卡一区二区| 免费午夜无码片在线观看影院| 久久不见久久见免费视频| √天堂中文www官网在线| 92精品国产自产在线观看481页| 亚洲男人电影天堂无码| 成在线人午夜剧场免费无码| 日韩一区二区三区精品区| 日韩国产欧美精品在线| 国产精品午夜福利小视频| 大地资源中文第三页| 九九热精品在线视频观看| 国产精品成人午夜福利| 成人爽A毛片在线视频淮北| 日韩高清免费一码二码三码| 亚洲国产成人AⅤ片在线观看| 成人午夜视频一区二区无码| 欧美xxxx做受欧美| 国产精品人成在线播放蜜臀| 中国女人高潮hd| 色欲国产精品一区成人精品| 国产在线视频精品视频| 欲色欲色天天天www| 亚洲国产av剧一区二区三区 | 成人福利国产午夜AV免费不卡在线 | 囯产精品久久久久久久久久妞妞 | 特黄aaaaaaaaa毛片免费视频| 欧美熟妇乱子伦XX视频| 蜜臀av一区二区精品字幕| 欧美另类图区清纯亚洲|