FIM ScriptBox Item
Summary
The script code below creates a criteria-based sample Set.
Script Code
Richard Mueller edited Revision 7. Comment: Removed (en-US) from title, added tag
Craig Lussier edited Revision 6. Comment: added en-US to tags and title
If generating a long $SetFilter in your script, you can run into a problem where powershell inserts end-of-line characters throughout the string, and it then can't be imported into FIM. To avoid this add the following line at the top of your script:
$host.UI.RawUI.BufferSize = new-object System.Management.Automation.Host.Size(50000,50)