|
@@ -17,6 +17,10 @@ if ($null -eq $Username){
|
|
|
$Username = Read-Host 'Enter username for auto-logon (f.e. contoso\user1)'
|
|
$Username = Read-Host 'Enter username for auto-logon (f.e. contoso\user1)'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+if ("" -eq $Username) {
|
|
|
|
|
+ throw "Username is Empty!"
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
if ($null -eq $Pass){
|
|
if ($null -eq $Pass){
|
|
|
$Pass = Read-Host "Enter password for $Username"
|
|
$Pass = Read-Host "Enter password for $Username"
|
|
|
}
|
|
}
|