Posts

New Site Collection Through PowerShell

#Creates a SPSite in a new content database Add-PSSnapin Microsoft.SharePoint.Powershell - ErrorAction SilentlyContinue; $siteName = "IT"; $webAppUrl = "http://intranet2013.mydomain.com"; $template = "STS#0"; $ownerAlias = "mydomain\ggoyal"; $secondaryOwnerAlias = "mydomain\ggoyal"; $siteUrl = "$webAppUrl/sites/$siteName"; $databaseName = "SharePoint_Intranet_$siteName"; $databaseServer = "Test-Server"; New-SPContentDatabase -Name $databaseName -DatabaseServer $databaseServer -WebApplication $webAppUrl; New-SPSite -Url $siteUrl -OwnerAlias $ownerAlias -SecondaryOwnerAlias $secondaryOwnerAlias -ContentDatabase $databaseName -Template $template -Name $siteName; # New SPSite does not create the default groups $web = Get-SPWeb $siteUrl; $web.CreateDefaultAssociatedGroups("i:0#.w|$ownerAlias", "i:0#.w|$secondaryOwnerAlias", $siteName); $web.update();

September 9, 2014 Cumulative Updates for SharePoint 2013

Cumulative Update for SharePoint 2013 has been released for September 9, 2014 SharePoint Foundation 2013 : http://support.microsoft.com/kb/2883087 SharePoint Server 2013 : http://support.microsoft.com/kb/2883068 Project Server 2013 : http://support.microsoft.com/kb/2883072 Office 2013 : http://support.microsoft.com/kb/2995905

Find Missing Web Part

Image
Whenever a SharePoint Developer or Administrator opens Central Administration site, they usually see a notification on top of CA site which shows all the warnings & issues with the SharePoint Farm & Servers. When you hit “View these issues”, You will get list of issues and warnings. In this list you will find a common error “Missing server site dependencies”. When you click on the “Missing server site dependencies”, you will get list of errors with like these kinds of messages: [MissingWebPart] WebPart class [8d6034c4-a416-e535-281a-6b714894e1aa] is referenced [2] times in the database [WSS_Content], but is not installed on the current farm. Please install any feature/solution which contains this web part. One or more web parts are referenced in the database [WSS_Content], but are not installed on the current farm. Please install any feature or solution which contains these web parts. I was wondering to find our missing web pars f

Web Part Branding

Image
Create css file "WebPartStyle.css" & upload in Style Library with below mentioned contents : .ms-wpTdSpace{ display:none; } .ms-WPHeader td:first-child {     background: url('g-03.png') no-repeat top right;     background: url('g-01.png') no-repeat top left;     margin: 0;     padding: 0px 0px 0px 20px;;     height: 20px;     display:inline; } .ms-WPHeaderTdMenu {     margin:0px 0px 0px 20px;     background: transparent url('g-02.png') scroll repeat-x right top !important;     border: 0; } .ms-WPTitle {    background: url('g-02.png') no-repeat top repeat-x !important; } .ms-WPTitle A { color:white !important; } .ms-WPHeaderTdSelection{     background: transparent url('g-03.png') scroll repeat-x right top !important; } /* border (title and border) */ .ms-rtestate-field table {     border-collapse: separate; } .ms-WPBorder {     border-top: none;     border-right: 1px #C0C0C0 solid;