get-gauser -all issue

74 views
Skip to first unread message

Les Evey

unread,
Aug 14, 2017, 8:30:36 PM8/14/17
to gshell-discuss
Last Friday (8/11/17)  "get-gauser -all" was working fine for me (as well as the last few years).

As of Sunday the 13th, I'm getting a "Object reference not set to an instance of an object." error.  It's returning a NullReferenceException.  Even setting MaxResults equal to 1 returns the error.  If I specify a user, it works fine, and returns the user's info.  Other cmdlets I've used are working fine.

The error is consistent with several versions of GShell and different PCs with different OS's.

Did Google change something?  Is it me?  Anyone else having an issue?  I'm only concerned because classes are starting soon and they're expecting me to make accounts.  I created most of them last Friday, so I'm not terribly worried, but GShell made things sooooooo easy to analyze and create accounts.

Spencer Varney

unread,
Aug 14, 2017, 10:23:55 PM8/14/17
to Les Evey, gshell-discuss
That's really strange - I can't reproduce it either, -all is working for me across the board. It doesn't sound like a permissions issue.

I can't think of what might be causing this, so just shooting from the hip here - If you specify -GAuthId with your domain, does that make any difference?

--
You received this message because you are subscribed to the Google Groups "gshell-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gshell-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Les Evey

unread,
Aug 18, 2017, 3:45:19 PM8/18/17
to gshell-discuss, lobo...@gmail.com



Found it.
We had some corrupt accounts whose name was listed as <Name not set or invalid name set by user>.  See attached pic.

I was able to use get-gauser and query a familyname s* and get users.  I could go through the alphabet with no problem, but since the bad accounts had invalid info, getting all users would cause it to crash.

Once I deleted those accounts, everything's back up and running, including some C# programs I wrote.

Thanks for your time.
ghostUsers-closeup.png
Reply all
Reply to author
Forward
0 new messages