I recently had a request to that I hadn’t had before. Requirements: Copy file from one location daily to overwrite an existing document File has to be the only that that gets checked in File is in some subfolders Check out and approve needs to be left turned on Versioning needs to be left on It needs to run at …
When backing up a SharePoint site and restoring to a HNSC (Host name site collection) the command is slightly different. You have to specify the web application and also the database that the HNSC sits in. For example: Restore-SPSite http://mysite -Path E:\TEMP\mysite.bak -force -HostHeaderWebApplication http://mywebapp -DatabaseName MySharePointDatabase The above command will restore the mysite.bak file to the URL http://mysite which …
Adding a user to have permissions to run PowerShell Scripts against a SharePoint database Add-SPShellAdmin domain\user –database DB GUID Simple to remove as well you just need to run: Remove-SPShellAdmin domain\user -database DB GUID Finding database GUID Get-SPDatabase
I use the word Vanity loosly here, it basically creates a nice short URL such as http://SHORT that will redirect to http://sharepoint/sites/mine/SitePages/something%20Very%20Long%20pagename.aspx – this is all done through IIS so you will need access to all web front end servers that are serving your SharePoint farm.
One of the amazing features that was removed from SharePoint 2013 but was in SharePoint 2010 was the quick and easy way to logon as a different user. To do this in SharePoint 2013 simply do the following
Add an HTML form webpart, replace the source text with this,
If you need to quickly disable enterprise features on all site except one run the following script
One can easily use the Get-SPWebTemplate command to get a list of all the templates in SharePoint environment. For a quick reference here is the complete list:
SharePoint 2013 farm config wizard fails with the below error message when running on new server
This button comes from the Document Centre template.