This is my first script so don\'t beat me up to bad!
I\'m working on a script that creates a network directory & AD group based on user input. The following is w
You could utilize a while loop:
$Division = $null while ($null -eq $Division) { [ValidateLength(2,2)]$Division = [string](Read-Host -Prompt 'Please enter the TWO digit division number ') }