Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mysitefeatures = get-spfeature -Web $mysitesweb.url
- $i=0
- WHILE ($MysiteBranding -notin $mysitefeatures.displayname -and($i -le 3))
- DO
- {
- $i++
- $MyWarning = "Warning $MysiteBranding is not enabled on "+$MySitesWeb.url+" attempting to enable now attempt "+$i
- mywarning
- clearmsg
- Enable-SPFeature -Identity $MysiteBrandingID -Url $MySitesWeb.url -force
- $mysitefeatures.update()
- clear-variable -name mysitefeatures
- $mysitefeatures = get-spfeature -Web $mysitesweb.url
- }
Advertisement
Add Comment
Please, Sign In to add comment