Monday, June 24, 2013

Iterate (Loop) Hash Table in Power shell (SharePoint)

$FileTypes = @{1="a",2="b"}
 
foreach($key in $FileTypes.GetEnumerator()){
    write-host "$($key.Name) :  $($key.Value)"
}
 
Post a Comment