I would like a script that could activate multiple features (list of features) at once in a single site collection. I was wondering if anyone out there has done this already. Any help would be appreciated.
It is probably worth pointing out that the list of features in the text file should be ordered accordingly to take into account activation dependencies if any of the features are dependent on others in the list, otherwise the script would have to be run multiple times until all the features have been activated. I suppose you could inspect all the features listed in the text file first to determine if any of them are dependent on each other and activate them in the correct order. I don’t know if the Force parameter of Enable-SPFeature ignores feature dependencies, but it will rerun code in the feature receiver, which may cause problems depending on the code.