Is there Powershell command/script that can be setup to run an "update collection memebership" on a specific collection and subcollections? If not Powershell another way besides right click on Collection and manually run an update collection?
Is there Powershell command/script that can be setup to run an "update collection memebership" on a specific collection and subcollections? If not Powershell another way besides right click on Collection and manually run an update collection?
I do it on regular basis using WMI. Simple function that does it:
You just need to fill in the blanks. And write a filter that would include collections you are after.
EDIT: Typo in namespace, not sure where first backslash came from. BTW: for list it's better to include wildcards:
-List Collection
would not return any results,-List *Collection*
would.