-
-
Notifications
You must be signed in to change notification settings - Fork 261
Open
Description
First thanks for your work
In Test-ForAdmin.ps1 around line 70, the Try/Catch will not trap an undefine user, it returns an empty string in $upn which is not trigering the catch. So later the $wid=... is trigering an error since $upn is empty string.
As a workaround after the catch {} I tested that (-not $upn.lenght -eq 0) to do the rest of the stuff.
May not be the best solution and I'm sure you'll find better, but meanwhile, I just wanted to tell you about this problem.
Metadata
Metadata
Assignees
Labels
No labels