Saturday, June 6, 2015

Configure My Site in Sharepoint 2013

You can refer following microsoft link to configure my site however I have list down few quick step to get it done with minimul setup

1. First step will be to create a mysite site collection in the web application where you would like to enable my site feature. To do this goto central administration
2. Select Application Management -> Create Site Collection
3. Save to URL for later configuration
4. For template select Enterprise -> MySiteHost Template

5.Enable self service application, Go to Central Admin
6. Select Manage Web Application under application management
7. Select Web application
8. Select "on" in the self service site creation and be hidden from user in start a site.

9. Select Manage Appluication
10. Click on Permission Policy
11. click Add new Policy
12. Grant Create Subsites - Create subsites such .....
13. Few pre-req permission will be selected automatically
14. click save

15. click "User Policy"
16. policy for webapplication dialog box select add users.
17. choose user for simplicity I selected everyone
18. select permission policy created in step 11
19. click finish and ok

20. Configure user profile service
21. Goto central admin
22. Goto application management -> Manage Service application
23. Select user profile services contifigured earlier if not follow step in my earlier post
24. Got My Site Setting select setup my site
25. Add my site host location  created in step 3
26. Click save

27. Enable UserprofileApplication -> Activity feedjob. Goto Central Admin
28. goto monitoring -> review job definition
29. on job definition page select "Service" under view list
30. click change service -> select service
31. Use arrow on the top right to navigate to userprofile server
32. Select user profile.
33. Select service end with Activity Feedjob
34. If not enable then enable it and click run now and you are done

Creating a first Visual Webpart for Sharepoint 2013

As compare to earlier version of SharePoint, development on sharepoint 2013 is charm. You just need to build your development environment and you are ready for development.

I used Visual Studio Ultimate Edition for this using C#. You need to install Visual Studio on a machine where SharePoint 2013 is installed so that you can start development. The resources available on Microsoft site are more then enough to kick start with the development.

Following are steps for creating a Hello World web part.

1. Open Visual Studio (as an administrator, other wise it will restart on step 4 ;) )
2. Click File -> New -> Project as shown below

3. Select Template under Visual C#-> Office/SharePoint -> SharePoint Solution

4. On the right pane select SharePoint 2013 - Visual Web Part
5. It will ask for share point site (If you need to create SharePoint site collection follow my post)
6. Validate site URL and select "Deploy as a farm solution"

7. As soon as you click finish it will create a project and coding fun starts
8. Select usercontrol (.ascx) file in solution explorer, right click and open in design view.
9. In my example I just add som static text an a button with a message.
10. After you are done just click on start button like any other web application and Visual Studio will deploy and open your webpart in debug mode.
11. Click Edit on home page to add your webpart on home page
12. From ribbon select Insert->WebPart
13. From categories on left select custom
14. Select your first webpart from "Parts"
15. click Add

 16 Your web part is added and you can interact with it. And nice thing is that you can use VS 2013 debugging capabilities to test and debug.

Manage Services on Server link doest show

You open SharePoint 2013 central administration and surprised that "Managed Services on Server" link doesn't showed up. You checked that user has sufficient rights..

I had similar issue and after doing some research I found that it was because I open central admin directly from IE which will not open it as an admin. So the best way is to open in using SharePoint Central admin link in program files.

If you are using windows 2012 and wondering how to access program files you may refer my post

Windows 2012 - How to access program files

If you are an windows users who is new to windows 2012 you might be wondering how to access program files in Windows 2012.

Following are steps to do this.

1. Press window + d to bring desktop in front.
2. Press window button and it will show start menu as show below.

3. Right click and you will show All app button on bottom right as shown below

4. As you click all app you will see complete program files as shown below

Thursday, June 4, 2015

Intalling Sharepoint 2013 on Windows 2012

Following are few steps for intallation of Sharepoint 2013.

For this post I am using VMWare for fresh installation.

1. Install Windows 2012 Data center 64 bit version:

2. Configure Active Directory(click for details)

3. Install SQL Server 2012

4. Install Sharepoint

5. Configure sharepoint services.

6. Create your first web-application

  1. Go to share point central administration
  2. Navigate to manage web application and click new to create new web application.
7. Create site collection
  1. After creating web application go to central administration
  2. Click Application Management
  3. Click create new site collection. After creation of site collection you are ready to work on SharePoint.

Configure sharepoint services

There are 3 essential SharePoint services you need to configure.

1. Managed Metadata service application
2. Search service application
3. User profile service application.

Follow below steps for Managed Metadata service configuration.

1.Go to Central Administration.
2.Go to Application Management -> Manage Service Application
3.Click new from the ribbon and select "Managed Meta Data Service"
4. Specified attributes and click ok.
5. Goto Central Administration
6. Under System settings select "managed services on server"
7. start manage meta data service.

Follow above step for Search service application with following differences.
In step 2 select "Search Service Application" and stop on step 4.

For User Profile service application, follow above step will following differences.
In step 2 select "User Profile Service Application"
In step 7 start "User Profile Service" and "User Profile Synchronization Service"

Configure Active Directory on Windows 2012 Data Center 64 bit

Configure Active Directory on Windows 2012 Data Center 64 bit

Before configuring active directory please ensure that your local administrator account password is set. Otherwise you may not be able to proceed with the installation/configuration of AD.

Follow below steps
1. Go to computer management
2. Expand System tools -> Local Users and Groups -> Users
3. On the right pane select administrator account
4. Right click and set a password.

Follow below steps for configuration of Active Directory on server

1. Open server manager as shown below. Click on Add role and feature.

 2. Add role and feature window popup appears as shown below. Click next to continue.

3. Select default option i.e. Select Role Based or Feature based Installation, Select server and then you will see below feature selection screen, Select "Active Directory Domain Services" below.

 4. As you click on next on previous screen a popup appear. Click Add feature.To proceed to installation option to initiate install.

5. After feature installation completed. you will see screen similar to below screen. Click "Promote this server to a domain controller"

6. This will start AD Domain services configuration wizard as shown below. Select "Add a new forest" on the screen and set domain name (in e.g. we set it to  "" )

7. Click next and assign the password. click Next and select default options.

8. Give NetBIOD domain name. In below sample we set it to TESTSVR. Click Next

9. Click Next select default options click Next.
10. Click Install button which will install AD and will restart server. you need to enter using your domain account to login using the password specified in step 7.

11. After login you will see AD management option in tool menu of server manager as shown below.

Now you can open Active Director Users and Service and add multiple service accounts in your AD. In below example we create a user with name "spadmin" responsible for installation and administration of Sharepoint

Friday, May 29, 2015

Installing Java JDK on Windows - Your first step towards Java Development

There are lot of help and tutorials available for you to install JDK and would recommend to follow the oracle help for the installation. But as a windows users, may follow below if you want to save some time

  1. Download JDK from below link
  2. Install JDK and JRE. Its a simple wizard.
  3. Setup following environment variables. 
    1. Go to My Computer, 
    2. Right click and select properties
    3. Click advance system settings
    4. Click Environment Variables
    5. Add following environment variable
      1. JAVA_HOME
      2. JRE_HOME
    6. Add following at the of you PATH (Environment) variable
      1. ;%JAVA_HOME%\bin
  4. Go to command prompt and type following command to test your setup
    1. java -version
    2. It should display the installed JDK version

Environment Variables

Path Variable

Installing Grails

I would really like the video at the following location

Following are steps for installing it on windows environment

  • Install JDK. 
    • You may use my other post to save some time :)
  • Download grails from below link
  • Unzip files and copy to one location says c:\grails
  • Define environment variable
    • GRAILS_HOME and set it to path used in previous step
  • Add following at the of you PATH (Environment) variable
    • ;%GRAILS_HOME%\bin
  • Go to command prompt and type following command to test your setup
    • grails -version
      • It should display the installed grails version
    • cd %GRAILS_HOME%
      • it should take you to grails directory
    • grails create-app HelloWorld
      • It should create application name hello world. You can use any name for your application
    • cd HelloWorld
      • It should takes you to newly created application
    • grails run-app
      • It should start application. 
      • If firewall gives any warning then we should allow application to continue.
      • It will download all dependencies
    • goto http://localhost:8080/ to see your application started successfully or not