Sunday, August 21, 2011

Group policy Management tool missing

If the gpmc.msc file (Group policy management tool is not present) on your server, you enable the future by following this link
http://blogs.technet.com/b/askds/archive/2008/07/07/installing-gpmc-on-windows-server-2008-and-windows-vista-service-pack-1.aspx

Thursday, August 11, 2011

Sharepoint 2010 development environment setup on Windows 7


 Make sure you have admin access on the pc where you are going to setup the sharepoint development environment. 

1.       You should preferably be running Windows 7 on x64 capable CPU and minimum RAM is 2GB, but I would suggest that we at least have 4GB for better performance.

2.       Install Visual Studio 2010 Enterprise edition and SQL Server Developer edition, This will get most of the prerequisites. You could also install the express editions of Visual Studio and SQL Server, but I haven’t tried with them.

3.       Download SharePoint 2010 foundation at
Or trail version at
Or in fact you could use your companies Subscription downloads for getting the Enterprise SharePoint 2010.

4.       Copy the SharePointFoundation.exe (or setup.exe for SharePoint enterprise edition) installation file to a temp folder on your computer C:\Temp
Open a command window
For SharePoint Foundation 2010:
c:\temp\SharePointFoundation.exe /extract:c:\temp5.       Open following file in notepad
c:\temp\files\Setup> notepad config.xml
Add following line to <configuration> tag
<Setting Id="AllowWindowsClientInstall" Value="True"/>
and save
The configuration for foundation should look like this, It is case sensitive
<Configuration>
  <Package Id="sts">
    <Setting Id="SETUPTYPE" Value="CLEAN_INSTALL" />
  </Package>
  <DATADIR Value="%CommonProgramFiles%\Microsoft Shared\Web Server
   Extensions\14\Data" />
  <Logging Type="verbose" Path="%temp%" Template="Microsoft SharePoint Foundation 2010 Setup *.log" />
  <Setting Id="UsingUIInstallMode" Value="1" />
  <Setting Id="SETUP_REBOOT" Value="Never" />
  <Setting Id="AllowWindowsClientInstall" Value="True"/>
</Configuration>
 
6.   Install the following additional prerequisites
(a)     Microsoft FilterPack 2.0. At a command prompt, execute FilterPack.msi file
c:\temp\PrerequisiteInstallerFiles\FilterPack\FilterPack.msi
(b)    Microsoft Sync Framework (http://go.microsoft.com/fwlink/?LinkID=141237)
(c ) SQL Server Native Client (http://go.microsoft.com/fwlink/?LinkId=123718)
(e) Chart Controls (this is not required if you are going to install SharePoint Foundation 2010). (http://go.microsoft.com/fwlink/?LinkID=122517)
(f) SQL Server Analysis Services - ADOMD.Net (this is not required if you are going to install SharePoint Foundation 2010).
(g)    This should already be preinstalled with Visual Studio 2010
Install WCF hotfix on pc (Windows6.1-KB976462-v2-x64.msu)

(h)   This should already be preinstalled with Visual Studio 2010
Install the ADO.NET Data Services Update for .NET Framework 3.5 SP1 to enable REST-based data services
Download and install Windows6.1-KB982307-x64.msu
(i)      If you are using local version of SQL Server 2008,
Install the service pack1
Download and install Windows6.1-KB982307-x64.msu


7.       Manually enable each of the required Windows Features. You can do this quickly by copying and running the following command in a Command Prompt window.
C:\temp> start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ManagementScriptingTools;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCF-HTTP-Activation;WCF-NonHTTP-Activation
Or
Download following file and run it in dos window at c:\temp
8.  Verify that following features are enabled in IIS
required features in the Internet Information Services section of the Windows Features dialog box (whih you can access through the Programs section in Control Panel). 
If any features are missing in your operating system, return to theInternet Information Services section of the Windows Features dialog box and enable them.
 
9.  Click on Control Panel -> Programs Section.
Select “Turn Windows Features on or off”

Verify following features under Internet Information Services are enabled, Typically with the script they should automatically be enabled.

10.   Restart computer by entering
Shutdown –t 0 –r –f
Where
–t 0 : shutdown in 0 seconds
-r : restart after shutdown
-f : force all application to terminate.

11.   Run C:\temp\setup.exe

12.   On the Choose the installation you want page, click Standalone 

13.   For any errors on install, see the log file
14.    To find the log file, open a Command Prompt window, and then type the following commands at the command prompt. The log file is displayed at the end of the directory listing.
cd %temp%
This will take you the local temp directory, in my case it was
C:\Users\loginname\AppData\Local\Temp>
dir /od *.log
This will show logs file ordered by date, the main logs which we would be interested are 
C:\Users\loginame\AppData\Local\Temp>notepad "Microsoft SharePoint Foundation 2010 Setup 20110812145510E6C.log"
1.       After install the SharePoint 2010 config wizard opens,  if using local instance of SQL server 2008 , install service pack 1  http://support.microsoft.com/kb/970315

Before proceeding with the wizard

2.       If you want to start the configuration wizard manually, we can use
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\ psconfigui.exe