Month: July 2015

404 errors, http, https and other fun things with SharePoint SPSiteURL

If you’re using host named site collections in SharePoint 2013 and have set an SPSiteURL in order to map a site collection to a different zone, you may have noticed when you backup that site from one farm to another farm, the default zone moves correctly to the destination farm, but any other zones continue to contain the url from the original source farm. Usually this presents it self as the site working when using the Default zone, but getting a pretty 404, when using the alternate zones. (Users love to use alternate zones). 🙂 (Best 404 eva!) Let say you moved a site collection called and needed to move it to a staging farm, so you restored it at The default zone url is https while the intranet zone is http. Powershell: (run Get-SPSiteURL against the Top Level Site Collection (Root Site) using the Default zone URL) Get-SPSiteURL -Identity E.g. Source Farm Top Level Site Collection Url Zone Default Intranet Destination Farm Top Level Site Collection Url Zone Default Intranet All the site collections get the Default and Intranet Zones from the Top Level Site Collection. Now if you run Get-SPSiteURL against the actual site collection you just restored E.g. Get-SPSiteURL -identity You’ll see the following. Url Zone Default Intranet Notice the Intranet Zone in invalid. If you’re on the source farm, you can’t hit...

Read More

SharePoint 2010 Mainstream support ending October 13th, 2015

      I’m sure most of you have already heard, or were already aware (months ago), that SharePoint 2010 Mainstream support is ending soon. Stefan posted it on his technet blog yesterday and here’s a link in case you missed it. Many of us who were running critical apps on SharePoint 2007, (or heaven’s no, SharePoint 2003) already know what this means. But in case you don’t, here is a chart taken from the Microsoft Support Lifecycle page that explains the differences between the type of support available in these phases as well as other questions you may have. And no, this doesn’t mean your SharePoint 2010 farms are going to burst into balls of virtual flames on Oct 14th, 2015. (Although if that does happen to you, DM me a picture!)...

Read More

Runtime error with some users opening files in Office Web Apps on SharePoint 2013.

I’ve run into an issue a few times, where a user attempts to open a document in a SharePoint 2013 library using Office Web Apps (OWA). When the browser tries to load the file, the screen displays a Runtime error. Specifically it says “Server Error in ‘/x’ Application. This doesn’t occur when the user opens the file in the client application. I was thinking this was an OWA issue overall, but this doesn’t happen for all users. Co-workers with the same permissions to the file seem to be able to access the file without an issue. After validating permissions again because “reasons” and checked the issue from each WFE it continues to work great for me. So I modified the (c:\windows\system32\drivers\etc\) host file of the user and it continued to fail on either WFE for the user. The Hunch/Fix: Well at least at this point I know it’s not 100% an OWA. I had the user try on another PC just in case it was an issue local to that machine and as certain as water is wet, the user can recreate the issue on a completely different computer. So now I’m thinking it’s gotta be following the user. On a hunch about another issue I’ve seen, I removed the users profile from the User Profile Database on the SharePoint farm. (Yes I deleted the profile, note: there are risks involved with losing...

Read More

Get All User Alerts for SharePoint Site Collection

Short post today on how to quickly grab a list of all the User Alerts in a SharePoint Site Collection.   Add-PSSnapin “Microsoft.SharePoint.PowerShell” $SPSiteCollection = Get-SPSite “http://SiteCollectionName” foreach($SpWeb in $SPSiteCollection.AllWebs) { foreach($alert in $SpWeb.Alerts) { Write-host “Alert Frequency :” $alert.AlertFrequency write-host “User: ” $alert.user Write-Host “Alert List :” $alert.ListUrl Write-Host “Alert Title :” $alert.title Write-Host ” ” } }...

Read More

Twitter Posts

Marrell Sanders @ MSIgnite