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

Get-AzureDomainInfo.ps1 InvalidOperation: (:) [], RuntimeException #9

Closed
AlucardsSandvich opened this issue Sep 9, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@AlucardsSandvich
Copy link

Hi,
Just to start off, very impressive tool.

However, when reaching the "Getting Domain Users for each group..." prompt when running Get-AzureDomainInfo I seem to be facing this error

You cannot call a method on a null-valued expression.
At Get-AzDomainInfo.ps1:213 char:42

  • ... each ($char in $charlist){$groupName = $groupName.replace($char,'.')}
  •                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Seems to hang for a good while; little unsure

The command I've ran is:
Get-AzDomainInfo -folder C:\Users\testbox\Desktop\test -Verbose

Any ideas what may be the cause of this? Has anyone encountered this before?

@kfosaaen
Copy link
Member

Do you have any groups in the test environment?
My guess is that your $groupLists variable (line 208) is empty and the error line that you have is trying to replace invalid characters on an empty set.
I can add a catch there for empty groups, but just want to check with your environment first.

@kfosaaen
Copy link
Member

If it's just hanging on that section, it might just be struggling on a specific group name. Are you still getting group members exported to CSV files in the Groups folder?

@kfosaaen kfosaaen added the bug Something isn't working label Sep 18, 2020
@kfosaaen kfosaaen closed this as completed Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants