Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test-ForAdmin #12

Open
holo89 opened this issue Feb 21, 2016 · 0 comments
Open

Test-ForAdmin #12

holo89 opened this issue Feb 21, 2016 · 0 comments

Comments

@holo89
Copy link

holo89 commented Feb 21, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant