Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

convert ObjectGuid attribute to HEX

$
0
0

I need to convert a computers active directory GUID into hex. The format I need this in is displayed the way I need it when I view the GUID through Active Directory Users and Computers, but every attempt to convert the return from [adsi] returns a different result than I get when I view the value through the application. 

All I want to do is display the following in HEX

([adsi]"LDAP://CN=SomeComputer,CN=Computers,DC=SomeDC,DC=com").objectguid


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images