What is the correct way of disabling a feature using PowerShell? I'm gonna add a script to task scheduler that's deactivates the Minimal Download Strategy feature from all the new sites that are created each day.
However, i can't come to a conclusion of which way is the correct way to do it.
$web = "http://server/sites/something"
$web.EnableMinimalDownload = $false
$web.Update()
Or
Disable-SPFeature -identity "Minimal Download Strategy" -URL "http://server/sites/something"
Are there any differences or are one way better then the other?