Quantcast
Viewing all articles
Browse latest Browse all 21070

How to remove the sync button from the ribbon

I will be provisioning several site collections via powershell script. During the provisioning, I would like to remove the sync button from the ribbon using powershell and without having to modify the master page nor removing the entire ribbon. In the UI I can go the site setting>Search and offline availability> then set "Allow items from this site to be downloaded to offline clients" to No. But with powershell I tried the code below but that does not remove the actual sync button. Is that even possible with powershell?

Get-SPSite -Identity "http://sitename" | Get-SPWeb –Limit All | ForEach-Object {
 
$_.ExcludeFromOfflineClient = $true

$_.Update()

}



Viewing all articles
Browse latest Browse all 21070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>