Hi
You could set a user input before starting the script. Then, save those input as a variable, and use them in during the script
For example
$DefaultPW = Read-Host "Enter your default password"
$DefaultPW
= $DefaultPW.Trim();
Hope it helps
Cheers
Zi Feng
TechNet Community Support
