HTTP to HTTPS redirects on IIS 6.x and higher (HTTPS Force)

This is the most common requirement on most of the Exchange servers hosted on IIS. The server admins configure an http to https redirect. Today I will be discussing few ways of doing this. I will keep updating this document as I find more ways to do so. I am considering OWA as a sub… Continue reading HTTP to HTTPS redirects on IIS 6.x and higher (HTTPS Force)

SharePoint Health Analyzer + Windows Eventviewer daily mailer from localhost and remotely logs via e-mail

Hello and Happy New Year After holidays break I decided to share script that I wrote the other day. The script can handle daily routine job of some of SharePoint and Windows Administrators and do all the automation. Recieved all error and warnings about entire SharePoint and Widows Servers Environments via e-mail day by day… Continue reading SharePoint Health Analyzer + Windows Eventviewer daily mailer from localhost and remotely logs via e-mail

How to Call Sharepoint Taxonomy in Powershell

I have the following bit of PowerShell, which returns a list of all the Departments stored in SharePoint’s managed metadata : Add-PSSnapin Microsoft.Sharepoint.Powershell # Get the site collection $sitecollection = Get-SPSite ‘http://mysharepointsite/’ # Get the term store id $taxsession = Get-SPTaxonomySession -Site $sitecollection # Change to the requierd service name $termstore = $taxsession.TermStores[“Managed Metadata Service”]… Continue reading How to Call Sharepoint Taxonomy in Powershell

SQL Server 2012 Error 15023 : User already exists in current database.

1) This is the best Solution. First of all run following T-SQL Query in Query Analyzer. This will return all the existing users in database in result pan. USE YourDB GO EXEC sp_change_users_login ‘Report’ GO Run following T-SQL Query in Query Analyzer to associate login with the username. ‘Auto_Fix’ attribute will create the user in… Continue reading SQL Server 2012 Error 15023 : User already exists in current database.

SharePoint 2013 : Setup is unable to proceed due to the following error(s): This product requires Microsoft .Net Framework 4.5

I also ran into this trouble spot one day when I was installing SharePoint 2013 for a client. Setup is unable to proceed due to the following error(s): This product requires Microsoft .Net Framework 4.5 So you need to check which version of .NET framework is installed on the server : • Set-Location ‘HKLM:\SOFTWARE\Microsoft\NET Framework… Continue reading SharePoint 2013 : Setup is unable to proceed due to the following error(s): This product requires Microsoft .Net Framework 4.5

Remove multiple SharePoint groups listed in *csv file using Powershell

    if ((Get-PSSnapin “Microsoft.SharePoint.PowerShell” -ErrorAction SilentlyContinue) -eq $null) { Write-Host “Connect SharePoint Cmd-Let” Add-PSSnapin Microsoft.SharePoint.PowerShell } $sp = Get-SPSite ” https://mysharepoint ” $spWeb = $sp.RootWeb $csvlocation = “c:\csv\groupsDeleteList.csv” $values = Import-Csv $($csvlocation) -Delimiter “;”     $values | ForEach-Object {     if($_.group -eq $spWeb.SiteGroups[$_.group]) { $spWeb.SiteGroups.Remove($_.group) $spWeb.Update() Write-Host “Group “$_.group” Deleted!” } else… Continue reading Remove multiple SharePoint groups listed in *csv file using Powershell