I've already emailed Nikolaj about this but this is so everyone else is aware.
In these two scripts it checks if $Password -ne $null but $Password is a string and is optional so, unless specified, will be empty. An empty string is not $null, it's just an empty string.
Change the If statement to either of the following:-
I've already emailed Nikolaj about this but this is so everyone else is aware.
In these two scripts it checks if $Password -ne $null but $Password is a string and is optional so, unless specified, will be empty. An empty string is not $null, it's just an empty string.
Change the If statement to either of the following:-