Hey guys,

I am working on a clean-up script where I am making a list of all valid paths 
used for AD accounts' HomeDirectory value.

I ended up hashing the root paths in order to detect when 2 or more DFSN paths 
actually take you to the same location.. it's a simple join of all folder names 
and an MD5 hash function.

In the end I want to replace all variations of paths that take one to the same 
location with one randomly chosen out of N.

Is a hash table for all unique paths a good idea? E.g.
MD5 as key and path as value? I want to use it for my string replacement 
(consolidation process) .. is it a proper use of hash tables? E.g. (I am 
thinking SQL) replace all occurences of MD5 BLAH with value of MD5 BLAH 2.

Hope this isn't too confusing, I would love some input on how to accomplish 
this.

Thanks,
Nile

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

Reply via email to