PowerShell

GUIDs to Octets, GUIDs to Base64 strings and back again

not sure if anyone is still looking at this but i …

Unknown - Jan 6, 2015

not sure if anyone is still looking at this but i have a question that seems simple but its puzzling me!
I am trying to follow the instructions to convert a GUID into a string. I have done this:

Which you can do with this one line of PowerShell script

Continue reading

GUIDs to Octets, GUIDs to Base64 strings and back again

Suppose I generate a GUID of 8c4ac332-975f-4717-ad7b-ba4a4e968fff by running the following PowerShell Command line

[system.guid]::newguid()

Don’t worry if your GUID is different from mine; it should be! If it isn’t let me know because I think I’ll partner with you for the lottery (aka a tax on the mathematically impaired).

Some attributes (like the attributeSecurityGUID) when edited through ADSI Edit require you to convert the GUID to octet string (for little endian systems – Intel processors are little endian): 32c34a8c5f971747ad7bba4a4e968fff

Continue reading

Behind the scenes of RoomResources–Custom Properties

While using FIM and PowerShell to manage Exchange 2010 I was following along a wonderful article on resource mailboxes that left me wondering a few things.

  1. Exactly how is the data stored in the msExchResourceDisplay and msExchResourceSearchProperties attributes?

  2. How is it stored with multiple custom properties?

  3. Is manipulating those AD attributes sufficient or is PowerShell storing something in the Exchange Data store?

Here are the answers:

image

  1. msExchResourceDisplay = “Room,FlatScreenTV” It appears to be a single valued string with commas.

msExchResourceSearchProperties at first blush appears to be a single-valued string with semi-colons, however further examination reveals it to be a multi-valued attribute

Continue reading