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?

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
(anonymous user)

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
(anonymous user)

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

avatar
(anonymous user)

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
(anonymous user)

How would I do that?

Thanks!