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