Hi all,
As many of you know, SharePoint 2013 includes a feautre that it’s called sync, that allows to synchronize a library with your own OneDrive.
As many of you know, it is a really cool feature, but in case you need deactivate this feature from a Web Application, you would need PS to do this:
Get-SPSite -limit all | get-SPWeb -limit all | Foreach {$_.Title = $_.Title; $_.ExcludeFromOfflineClient=1; $_.Update()}
That’s all, easy, isn’t it?