Get-Adobject not returning all attributes only when running in universal

Get-Adobject not returning all attributes only when running in universal

avatar
(anonymous user)

No matter which version of the shell I use (PS5/PS7/Integrated) Get-Adobject won’t return the Flags attribute in universal. It will on the same machine using PS5/7 in terminal or ICE. Is this a bug?



7baffab8d63aea8b6c34d4694201c6fba66dadc1

7baffab8d63aea8b6c34d4694201c6fba66dadc1.jpeg

All Comments (6)

avatar

yes - i see it also. only std attributes are being populated.
but its random sometimes (most of the times) it works sometimes its not
cannot track it down

avatar

that’s very strange, if it’s running an instance of powerhsell 5/7 from universal, why would it be any different from running it in a terminal?

avatar

Does replacing Format-list with “Select-Object *” make any difference?

avatar

I did Select * and it didn’t make a difference.

avatar

Try using System.DirectoryServices.Protocols instead.

You can use S.DS.P PowerShell module which uses System.DirectoryServices.Protocols.

avatar

How would I do that?
Thanks!