Recently I had to add a host to the hosts file. What made my angry about this was the fact that I had to do it manually, if you’ve ever used a unix/linux machine this feels so wrong.
That’s why I’ve created several PowerShell functions to make the manipulation of the hosts file easier.
In case you manage your SharePoint installation with PowerShell and your backup script failed, you might experience that the site collection is locked for any kind of access.
That’s because SharePoint locks the site collection for backups until the backup process has finished.
And in another case like mine, it could happen that you’re unable to unlock the workspace, despite your logged in as administrator.