Set-ManagedProperties -> Example

Jan 26, 2010 at 10:12 AM


I have read this site with great interest. I have tried some script, they work fine.

But with the script Set-ManagedProperties I have problems. I would like to add 15 ManagedProperties to our farm, how can I do this.

Thanks for your answer,


Feb 9, 2010 at 5:11 PM

Hi Horst,

Sorry for the delay in getting back to you - what problems are you having with the script, exactly?

The easiest way to add 15 properties would probably be feeding them from a text file - an example of what the file should contain is actually contained within the script itself, as the default value for the -props input parameter.



Dec 5, 2011 at 4:25 PM

Example for the content of the text file "yourfilename.txt":





I found that you need to do an update after setting the EnabledForScoping property in the script, like so:

# Set the "Use in scopes" attributes using the value from input
$mprop.EnabledForScoping = $prhash.inscopes;