Here is what I really need help with guys,

I need to be able to modify [string]values of a custom object.

My custom object contains PATH strings, I just want to iterate through and 
-replace "blah","notblah" for each string.....

Cannot quiet figure out how to make changes to an existing custom object while 
I iterate.... Any pointers would be awesome! Thanks!

Nile Gilmanov


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Gilmanov, Nile
Sent: Monday, July 27, 2015 8:49 AM
To: [email protected]
Subject: [powershell] need guidance on comparison of DFS-N paths

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

================================================
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