Is there a way to determine within a powershell scripts if it is being executeded in interactive or unattended mode?
pseudo code:
if (interactiveMode) {
DoInteractiveStuff()
}
if (unattendedMode) {
DoUnattendedStuff()
}
Of cource i could pass some argument to the script but it would be better if the scripts itself was able to determine the mode.
Add your 2¢