I've looked at the UserObject that get-user returns, and it's not a member in there that I can see.
How can I hide an object from the directory?
Much appreciated for this wonderful resource!
Mars
I found it.
It's in the user object after all. Must have looked at it a hundred times!
IncludeInGlobalAddressList : True
Anyway... Here's how you change it:
$U = (Get-GAUser $UserName).UserObject
$U.IncludeInGlobalAddressList = $False
Set-Gauser -UserKey $UserName -UserBody $U