I want to loop over all web application's site collection and activate a feature on root web except the root site collection. How to know if current site collection is the root one.
PS : I've used to compare site collection url with web application url but this isn't the best practice for me.
...
if($site.Url -like $WebAppUrl)
...
0 commentaires:
Enregistrer un commentaire