Posts

Showing posts from April, 2014

State Service Application

Creates a session state database and turns on the session state service. $serviceApp = New-SPStateServiceApplication -Name "<StateServiceName>" New-SPStateServiceDatabase -Name "<StateServiceDatabase>" -ServiceApplication $serviceApp New-SPStateServiceApplicationProxy -Name "ApplicationProxy" -ServiceApplication $serviceApp -DefaultProxy

Session State SharePoint 2013

This is different than enabling state service application Enable-SPSessionStateService –DatabaseName “SessionStateDatabase” –DatabaseServer “localhost” –SessionTimeout 120

enumerate SharePoint 2013 Databases using powershell

Use this command to enumerate the databses: get-spdatabase | Format-Table Name,Type -autosize | Out-File "c:\dbs.txt"

Create Host Named Site Collection in SharePoint 2013 using Powershell

$owner = "domain\user" $siteurl = " http:/x.com " $name = " Site" $w = get-spwebapplication  " http://hostweb.com " New-spsite $siteurl –owneralias $owner –hostheaderwebapplication $w –name $name –template "STS#0"

SharePoint 2013 Service Pack 1 issue

We have recently uncovered an issue with this Service Pack 1 package that may prevent customers who have Service Pack 1 from deploying future public or cumulative updates. As a precautionary measure, we have deactivated the download page until a new package is published. ” http://support.microsoft.com/kb/2817429

SharePoint 2013 Tools

There are some tools that are nice to have when dealing with SharePoint: DisposeChecker Developer dashboard .NET reflector Fiddler httpWatch LDP.exe nslookup Telnet wireshark netmon  Notepad++ SQL trace logs event viewer DisposeChecker ulsviewer

SharePoint 2013 User Profile synchronization versus import

Reference is : 2013 advanced Training User Profile Service administrators in SharePoint 2013 can use profile synchronization to manage and synchronize the user and group profile data stored in the SharePoint 2013 profile store with profile data stored in directory services and BDC systems. There are two distinct forms of profile import and synchronization available in SharePoint 2013: ·          One-way profile import. This is a new implementation of a simple import process that was first provided in SharePoint Server 2007. It uses the SharePoint Active Directory Import option to import user profile data from Active Directory Domain Services (AD DS). Note: One-way profile import only works with Active Directory and does not support other directory services. ·          Two-way profile synchronization. This uses the SharePoint Server 2013 profile synchronization method that was first introduced in SharePoint Server 2010. It uses Microsoft Forefront Identity Manager (FIM)

SharePoint Online Developer Resources

The resources: 1-       Use your MSDN subscription to check the office 365 developer site 2-       You can create your windows azure machines if you have MSDN subscription   or bought machines 3-       Check some links below and you can do your own investigation too Some Links for development SharePoint apps: http://sharepointpromag.com/blog/office-365-development-environment-options-and-tools (Important) http://office.microsoft.com/en-001/office365-sharepoint-online-enterprise-help/plan-customizations-solutions-and-apps-for-sharepoint-online-HA102772716.aspx (Important) http://blogs.msdn.com/b/officeapps/archive/2013/10/17/announcing-visual-studio-2013-rtm.aspx (Important) http://msdn.microsoft.com/en-us/library/fp161179(v=office.15).aspx (Important) http://code.msdn.microsoft.com/office/site/search?query=SharePoint&f[0].Value=SharePoint&f[0].Type=SearchText&ac=2 http://www.codeproject.com/Articles/690015/SharePoint-Online-App-Development-Part

SharePoint Vanity URLs

Vanity URL is the url that just redirects to existing site to do that in SharePoint 2010/2013: Note: the following steps needs to be done on all front ends servers if you are having more than 1 and also make sure to add it to the DNS In IIS go to sites and add new one and enter the site information with the host name for vanity URL in the permissions for the new site add all authenticated users with read permission In IIS section click Authentication enable Windows Authentication till focused on the Windows Authentication in the right pane click Advanced Settings and deselect Enable Kernel-mode authentication. In IIS section, click HTTP Redirect. Check Redirect requests to this destination and enter the redirection information and apply this rule Now the vanity URL is ready

SharePoint Application Pool not available Event ID 5059

I faced issue that the application pool for SharePoint site keep shutting down and when I try to start it and navigate to the site it just shut down again. I figured out that Active Directory team did changes in OUs, that affected the site, so you need to add the service account back to the local security policy which is called "Log on as a service"

SharePoint Architect Skills

The SharePoint is a unique product that let you get engaged in dealing with many products/applications, so the Architect needs to have the following skills: IIS Windows Server Protocols Knowledge SQL Server Capacity Planning Workflows ASP.net and Javascripts Load Balancer Firewall Monitoring tools Virtualization DNS Active Directory will try in other posts to put references to learning materials and there is important note that no need to have deep skills in all those but this list is intended to help in gaining more experience step by step.

Cisco VPN Connection on windows 8 issue and resolution

To connect to any VPN use cisco client VPN with this version "5.0.0.7.0440" on windows 8 follow the following steps as some times you will face issue that it will not work Import the connection files after that if the connection didn't work then make simple modification in the registry Open Registry editor by typing regedit in search ·    Browse to the Registry Key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\CVirtA ·    Select the DisplayName to modify, and remove the leading characters from the value data upto "%;" i.e. o    For x86, change the value data from something like "@oem8.inf,%CVirtA_Desc%;Cisco Systems VPN Adapter” to "Cisco Systems VPN Adapter” o    For x64, change the value data from something like "@oem8.inf,%CVirtA_Desc%;Cisco Systems VPN Adapter for 64-bit Windows” to "Cisco Systems VPN Adapter for 64-bit Windows” ·    Try connecting again

Logs Parsing

Some free tools that give some statistics http://download.cnet.com/Deep-Log-Analyzer-Free-Edition/3000-10248_4-10615007.html  ( http://www.deep-software.com/help/index.html?logging_setup_in_iis.htm ) Queries to use in log parser http://blogs.msdn.com/b/carloc/archive/2008/07/20/time-taken-and-logparser-for-web-site-statistics.aspx http://blogs.technet.com/b/clinth/archive/2010/01/07/w3c-iis-log-analysis-using-log-parser.aspx http://blogs.msdn.com/b/carloc/archive/2008/08/07/charting-with-logparser.aspx http://perftesting.codeplex.com/wikipage?title=How%20To%3A%20Use%20IIS%20Log%20Files%20In%20Performance%20Testing http://blogs.msdn.com/b/carloc/archive/2008/07/29/logparser-did-it-again-application-pool-recycle.aspx http://blogs.iis.net/chrisad/archive/2006/07/13/Chris.aspx http://www.microsoft.com/en-us/download/details.aspx?id=17275 http://www.chapelhill.homeip.net/IISView/ http://www.weblogexpert.com/lite.htm http://indihiang.codeplex.com

Use host-named site collections with off-box SSL termination (forcing SSL)

If you are having load balancer and you want to create host named site collection that is forcing https instead of http so what you need is the following 1-create host named site collection with https or add zone for https if you already created the site collection with http 2-Ask the load balancer team to force ssl from their side and ask them to add custom header as referenced in the below link http://technet.microsoft.com/en-us/library/cc424952(v=office.15).aspx#section2g

Distributed Cache SharePoint 2013

To test that Distributed cache is working as required, run the following Power shell commands in SharePoint Management Shell: use-cachecluster get-cacheclusterhealth get-cachehost