February 2017
Beginner
737 pages
15h 22m
English
There may be instances where you will want to combine the use of the different structures explained in this chapter. The example that you will create is a simple menu system that can be modified for use within your scripts. This script will prompt for your interaction and perform actions based on your response, as shown here:
# A Menu System for Use With This Example Function menu-system { Write-host "*********************************************" Write-Host "* Please Make A Selection Below:" Write-Host "*" Write-Host "* [1] Backup User Permissions." Write-host "*" Write-Host "* [2] Delete User Permissions." Write-host "*" Write-Host "* [3] Restore User Permissions." Write-host "*"
Read now
Unlock full access