Wednesday, April 20, 2016

Exchange 2010 Prerequisites on Server 2008 R2

  • Open powershell and run the following command
    • Import-Module ServerManager
  • For a server that will have the typical installation of Client Access, Hub Transport, and theMailbox roles:
    • Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy,Web-WMI -Restart
  • For a server that will host the Client Access and Hub Transport server roles:
    • Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy,Web-WMI -Restart
  • For a server that will host only the Mailbox role:
    • Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server -Restart
  • For a server that will host only the Unified Messaging role:
    • Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Desktop-Experience -Restart
  • For a server that will host the Edge Transport role:
    • Add-WindowsFeature NET-Framework,RSAT-ADDS,ADLDS -Restart
  • After the system has restarted, configure the Net.Tcp Port Sharing Service for Automatic startup by running the following command:
    • Set-Service NetTcpPortSharing -StartupType Automatic

Upgrade Windows Server 2008 R2 From Standart to Enterprise

View Current installed Version
DISM /online /Get-CurrentEdition

View versions available for upgrade
DISM /online /Get-TargetEditions

for upgrade 
DISM /online /Set-Edition:<edition ID> /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

DISM /online /Set-Edition:ServerEnterprise /ProductKey:489J6-VHDMP-X63PK-3K798-CPX3Y

Restart Computer

Saturday, April 9, 2016

Internet Explorer cannot display the webpage when creating new Web Application in SharePoint 2013

When creating a new Web Application in SharePoint 2013 you might get this message in the “pop up” window: Internet Explorer cannot display the webpage like in the following ScreenShot:






 By Default, the application pool only allows for 90 seconds for all the connections to close before it down by force. If you got this message it’s because 90 seconds wasn’t enough and we need to increase that limit.


Solution :

In IIS click Application Pools--- SharePoint Central Administration v4 application pool. Right click on it and choose Advanced Settings




In the Process Model section, set the Shutdown Time Limit to a greater value. As an example, 300.




Restart IIS.


Source



Friday, April 8, 2016

Certificate Validation errors in SharePoint 2013

"A certificate validation operation took 30007.5449 milliseconds and has exceeded the execution time threshold.  If this continues to occur, it may represent a configuration issue.  Please see http://go.microsoft.com/fwlink/?LinkId=246987 for more details."




Solution:

Open MMC local Computer Certificates >> Sharepoint>> Certificates >>




 Generate a cert via powershell. So I done the following in the SharePoint Management Shell:

$rootCert = (Get-SPCertificateAuthority).RootCertificate
$rootCert.Export(“Cer”) | Set-Content C:\root.cer –Encoding Byte

Go back into the certificates snap in and import the certificate into the trusted root certificate authorities.



SharePoint 2013 and 404 on Every Site and Central Administration


When i go to http://spsite/pages/default.aspx the page appears. If i go to http://spsite/ the page does not redirect, and instead shows a 404 error.


Solution:

1.Go to Server name in IIS
2. Open ISAPI and CGI Restriction
3. Add below 4 entries in it.
Description: Microsoft SharePoint Foundation 2010

 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\isapi\_vti_aut\author.dll
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\isapi\_vti_adm\admin.dll
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\isapi\shtml.dll
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\isapi\owssvr.dll

Wednesday, April 6, 2016

Sharepoint tabs script

<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="//code.jquery.com/ui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.cookie/1.4.1/jquery.cookie.min.js"></script>
<script type="text/javascript" src="//www.markrackley.net/scripts/jquery.HillbillyTabs.2013.js"></script>

<link  type="text/css" rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/start/jquery-ui.css" />

<div id="tabsContainer"></div>

<script type="text/javascript">
     jQuery(document).ready(function($) {

        //Put 2 web parts in 2 different tabs
//        var webPartTitles = ["Web Part Title 1","Web Part Title 2"];
//        HillbillyTabs(webPartTitles);

        //Create a Tab with Two Web Parts, and a second tab with one Web Part
//        var webPartTitles = ["Tab Title;#Web Part Title 1;#Web Part Title 2","Web Part Title 3"];
//        HillbillyTabs(webPartTitles);
   
        //Put all web parts (that have visible titles) in current zone into tabs
        HillbillyTabs();

    });
</script>

Monday, April 4, 2016

Hide Unwanted Fields On Calendar Form




add

Add web Part—Media and Content—Content Editor –Script Editor


<script src="http://intranet.psh.gov.ge/meetingrooms/SiteAssets/Scripts/jquery-1.8.0.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready( function() {
$("TABLE.ms-formtable>TBODY>TR:eq(1)").css('display', 'none');
$("TABLE.ms-formtable>TBODY>TR:eq(5)").css('display', 'none');
$("TABLE.ms-formtable>TBODY>TR:eq(6)").css('display', 'none');
})</script>


Download script : https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js and save to ../SiteAssets/Scripts/