kwizcom banner advertisement

Change SharePoint Site Title, Description and Icon (Logo) with PowerShell

February 27, 2013    , , , , ,
Its not necessary to continue with the name and description Administrators provides during the creation of the site, isn't it?  Let's see how we can change SharePoint site's Title, Description and Icon (Logo) from SharePoint Interface as well as using PowerShell. How to Change Logo from SharePoint Web Interface? Go to Site Actions >> Site settings >> Click on Title, description, and icon Link under "Look and Feel", Change the name and description as per your requirements! Change SharePoint Site Title, Description and Icon with PowerShell #Get the Web $Web= Get-SPWeb "http://your-sharepoint-site.com" #Set the Title & Description $Web.Title = "Marketing Portal" $Web.Description = "Marketing Portal" #You can change the Quick Launch/Treeview navigation also (If its not a Publishing site): $Web.TreeViewEnabled = $True #Update the changes $web.Update() How to Change Logo in SharePoint 2010 Site When we c
Change SharePoint Site Title, Description and Icon (Logo) with PowerShell Change SharePoint Site Title, Description and Icon (Logo) with PowerShell Reviewed by Salaudeen Rajack on February 27, 2013 Rating: 5

Create-Update-Copy-Delete SharePoint List Views using PowerShell

February 26, 2013    , , , , ,
Requirement is: There are lot of document libraries in a SharePoint site. Periodically, in all libraries there is a need to: Create a new view Update an existing view with new filter condition Create new new by copying existing view and modify the filter Delete an existing view Add new field to existing view Team wanted to automate the process of creation of new SharePoint list views, Deleting existing views, Update filters on existing views and copy existing views. Wrote PowerShell code to do the above: Create SharePoint List View in PowerShell: #Function to create new View Function CreateNewView() { Param( [Parameter(Mandatory=$true)] [string]$SiteURL, [Parameter(Mandatory=$true)] [string]$ListName, [Parameter(Mandatory=$true)] [string]$ViewName ) $site = Get-SPSite $SiteURL $web = $site.openweb() #Get the List $list=$web.lists[$ListName] #View Fields $viewFields = New-Object System.Collections.Specialized.StringCollection #Add fields
Create-Update-Copy-Delete SharePoint List Views using PowerShell Create-Update-Copy-Delete SharePoint List Views using PowerShell Reviewed by Salaudeen Rajack on February 26, 2013 Rating: 5

Nintex Workflow Tasks Item not found Error - Solution

February 26, 2013    , , ,
Problem: Nintex Workflow tasks displays : * Item Not found error! Cause: Workflows are initiated and items in which workflows ran, are deleted by end-user. When I tried terminating the workflows, it gave "Server was unable to process the request --> Values does not fall within the expected range." error message! When I tried opening workflow task, got "Value does not fall within the expected range" Error!! Solution: Use NWAdmin tool to terminate the tasks for deleted items. Here is how: Go to command prompt, CD "C:\Program Files (x86)\Nintex\Nintex Workflow 2007" NWAdmin -o SyncTerminatedWorkflows -url https://sharepoint.company.com/finance/v3 -terminatedeleteditems So, to avoid such issues, always terminate the workflow and then delete the items. Item not found may also occur when user doesn't has at least read access on the item!
Nintex Workflow Tasks Item not found Error - Solution Nintex Workflow Tasks Item not found Error - Solution Reviewed by Salaudeen Rajack on February 26, 2013 Rating: 5

Nintex Workflow "There was an error installing the content type required for the flexi task action"

February 25, 2013    , ,
Nintex Workflow was giving an error, when trying to publish: " There was an error installing the content type required for the Flexi-Task action. Please arrange for an Administrator to run the following command on the server: stsadm.exe  -o installfeature -n nintexworkflowcontenttypeupgrade For more information please contact support@nintex.com " I already ran that command: stsadm –o installfeature –n nintexworkflowcontenttypeupgrade , as in the error screen. it completed with "Operation completed successfully!" but still had the same error!! Then I tried activating it: stsadm -o activatefeature -name nintexworkflowcontenttypeupgrade -url http://sharepoint.crescent.com/sites/finance/ -force and things are turned good!
Nintex Workflow "There was an error installing the content type required for the flexi task action" Nintex Workflow "There was an error installing the content type required for the flexi task action" Reviewed by Salaudeen Rajack on February 25, 2013 Rating: 5

Find the GUIDs of SharePoint Web Application, Site Collection, Site, List, View and Columns

February 25, 2013    , , , , , , , , ,
We may have to find the GUID of SharePoint objects such as web application, site collection, web, list, view or column at times. Here are some nifty techniques: Get web application GUID in SharePoint 2010 Lets find web application GUID in SharePoint 2010. Go to Central Admin >> System Settings >> Click on "Configure Cross-firewall access zone" link under Farm Management and choose the desired web application and click Ok. Now, we get the web application GUID in address bar! Get Site Collection GUID from Central Administration: In central administration, navigate to links such as "Change Site Owner" by going to: Central Admin >> Application Management >> Change Site collection Administrators and Pick the target site collection. Now, you'll get site collection ID in browser address bar, as highlighted. Find List GUID from SharePoint User Interface: Head on to List settings >> Hover over list settings links such as "Col
Find the GUIDs of SharePoint Web Application, Site Collection, Site, List, View and Columns Find the GUIDs of SharePoint Web Application, Site Collection, Site, List, View and Columns Reviewed by Salaudeen Rajack on February 25, 2013 Rating: 5

Search SharePoint Recycle bin with SPRecycleBinQuery

February 24, 2013    , ,
Searching inside SharePoint recycle bin for a deleted item or file, is a pain especially when you have LOT of deleted items and files in SharePoint recycle bin. Unfortunately SharePoint doesn't provide Search capability in recycle bin and you have to press Next>> <<Prev buttons to search for your file. We can perform Search on SharePoint Recycle bin items with SPRecycleBinQuery. Here is an example of SPRecycleBinQuery with PowerShell. Good news is: If you know your file name, can search inside recycle in programmatically with PowerShell! [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") #Get the Site collection $site = new-object Microsoft.SharePoint.SPSite("http://sharepoint.company.com") #Create new object for SPRecycleBinQuery $query = new-object Microsoft.SharePoint.SPRecycleBinQuery #$query.ItemState = "FirstStageRecycleBin" $query.ItemState = "SecondStageRecycleBin" #How many Rows to b
Search SharePoint Recycle bin with SPRecycleBinQuery Search SharePoint Recycle bin with SPRecycleBinQuery Reviewed by Salaudeen Rajack on February 24, 2013 Rating: 5

PowerShell to Get All Files of Particular Type from a SharePoint Web Application

February 22, 2013    , , ,
In a Branding revamp project, After updating new logo on the SharePoint CSS Files, Found there are lot of InfoPath forms out there with old logo. So had to figure out all deployed InfoPath XSN Templates! PowerShell Script to Find all XSN Files: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") > $null #For SharePoint 2007 function global:Get-SPSite($url){ return new-Object Microsoft.SharePoint.SPSite($url) } #Function to Scan XSN Files Function GetXSNFiles($Folder) { foreach ($File in $Folder.Files | Where-Object {$_.Name -match ".xsn"} ) { #Write data to CSV File "$($Folder.ParentWeb.Site.RootWeb.Title)" +"`t"+ "$($Folder.ParentWeb.Title)" +"`t" + "$($Folder.ParentWeb.URL+"/")$($File.URL)" +"`t" + "$($File.TimeLastModified)" >> XSNTemplates.csv } #Iterate through all subfolders foreach ($SubFolder in $Folder.SubFo
PowerShell to Get All Files of Particular Type from a SharePoint Web Application PowerShell to Get All Files of Particular Type from a SharePoint Web Application Reviewed by Salaudeen Rajack on February 22, 2013 Rating: 5

Find All Checked Out Files and Check-In them Back using PowerShell

February 20, 2013    , , , , ,
I'm Sharing one of the PowerShell script I used in MOSS 2007 to SharePoint 2010 migration. Since its very difficult to check-in back all the checked-out files after migration, its a best practice to check-in all checked out files prior. This PowerShell script will Scans, Generates Report and check-in all checked out files. Run this script with Farm Administrator privileges. # For MOSS 2007 compatibility [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") #Region MOSS2007-CmdLets Function Get-SPWebApplication() { Param( [Parameter(Mandatory=$true)] [string]$WebAppURL ) return [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup($WebAppURL) } Function global:Get-SPSite() { Param( [Parameter(Mandatory=$true)] [string]$SiteCollURL ) if($SiteCollURL -ne '') { return new-Object Microsoft.SharePoint.SPSite($SiteCollURL) } } Function global:Get-SPWeb() { Param( [Parameter(Mandatory=$true)] [string]$Sit
Find All Checked Out Files and Check-In them Back using PowerShell Find All Checked Out Files and Check-In them Back using PowerShell Reviewed by Salaudeen Rajack on February 20, 2013 Rating: 5

Redirect Old MOSS 2007 Site to New SharePoint 2010 Site during Migration using URL Rewrite

February 18, 2013    , , , , ,
In a database attachment method of migration from MOSS 2007 to SharePoint 2010, we gradually moved site collections one by one by attaching content databases of individual site collections. It took a while to address migration fixes and make them in a good shape for each site collection. Meanwhile, had to redirect Users to migrated SharePoint 2010 site collections when they hit old MOSS 2007 site collection URLs or access them from bookmarks. Ideally, once migration is completed, we must place a server redirect in publishing server (like F5/ISA) or DNS change to send users from old URL to new URL. But in our case, As we move site collections one by one, only few site collections needs to be redirected. Solution: IIS URL Rewrite Module! Lets create a URL Rewrite Rule to redirect from old MOSS 2007 site collection to migrated SharePoint 2010 site. Say our: Source: "http://moss2007.company.com/sites/marketing"  Target: "http://sharepoint2010.company.com/sites/mark
Redirect Old MOSS 2007 Site to New SharePoint 2010 Site during Migration using URL Rewrite Redirect Old MOSS 2007 Site to New SharePoint 2010 Site during Migration using URL Rewrite Reviewed by Salaudeen Rajack on February 18, 2013 Rating: 5

Hide Links in Site Settings Page with HideCustomAction

February 14, 2013    , , , , ,
Problem: People makes SharePoint branding inconsistent by creating and applying random themes and breaks corporate branding. So need to stop users from creating & uploading new themes and applying them. Solution: Hide Themes and Site Themes links with "HideCustomAction" from Site Settings! Some time back, I created a feature to Hide "Delete this site" link from Site settings. Lets re-use the same trick to build a feature to hide "Themes" link from site settings page from everyone. Lets gets started. 1. Create New "Empty SharePoint Project" in Visual Studio 2010. Give it a name. Say: Crescent.TeamSite.HideThemes. Make it a Farm Solution. 2. Add a Feature to the project by right clicking "Features" node in the Solution Explorer, Add Feature 3. Add new Module to the Project, by Right clicking the project Crescent.TeamSite.HideThemes from solution explorer and choose "Add >> New Item", Give it a name. Sa
Hide Links in Site Settings Page with HideCustomAction Hide Links in Site Settings Page with HideCustomAction Reviewed by Salaudeen Rajack on February 14, 2013 Rating: 5

Creating SharePoint Search Scope to Find Only Documents

February 12, 2013    , ,
Requirement: End-User wants to get only documents in search results! Solution: In brief, create a new search scope of "ContentClass" Type "STS_ListItem_DocumentLibrary". This will filter search results with in all the documents under SharePoint document libraries. At high level, to get filter search results by only documents, We are going to: Create a New Search Scope Add Rules to Search Scope Create New Page for Search Results Set Search Core Results Web Part Scope Property Add New Tab to Search Center, Link the Search Page crated I assume SharePoint search service application is already in place, up and running. (if not, create it first!) Step 1: Create a New Search Scope: Go to Central Administration >> Manage service applications >> Search Service Application (or whatever SSA created in your environment) >> Manage >> Click on "Scopes" Link in Search Administration. Click on New Scope to Create a New Sc
Creating SharePoint Search Scope to Find Only Documents Creating SharePoint Search Scope to Find Only Documents Reviewed by Salaudeen Rajack on February 12, 2013 Rating: 5

SharePoint 2013 Correlation ID - Get Detailed Error using PowerShell

February 11, 2013    , , , , , , ,
Correlation IDs are introduced in SharePoint 2010 to uniquely identify each error encountered. Later, these correlation ids are used as a starting point reference to get the complete error details from ULS logs during troubleshooting issues. How to check correlation id in SharePoint 2013 ? While its possible to open and search ULS logs correlation ids with notepad, There are some easy ways and tools to lookup correlation id errors in SharePoint 2013. Here is a typical SharePoint 2013 sorry something went wrong" error page with correlation id. Find SharePoint 2013 correlation id using PowerShell Just get the correlation id SharePoint 2013 from the error page and pass it to the PowerShell cmdlet: Get-SPLogEvent . Here are some examples: Login to your SharePoint server(s), Open SharePoint 2013 management shell and replace the GUID with your correlation ID. #Get all details of the error Get-SPLogEvent | ?{$_.Correlation -eq "6922c76b-32f7-4e2e-af96-fbda88a77fa5"
SharePoint 2013 Correlation ID - Get Detailed Error using PowerShell  SharePoint 2013 Correlation ID - Get Detailed Error using PowerShell Reviewed by Salaudeen Rajack on February 11, 2013 Rating: 5

How to Hide Home Tab in SharePoint 2007-2010-2013 Top Navigation

February 10, 2013    , , ,
Ever wanted to Hide or Remove the Home Tab (or First Tab) from SharePoint Site's Top navigation Menu bar? How to Hide home tab in SharePoint 2010 How to do that? Site Settings >>  Navigation Settings? No! You won't get an option to remove Home tab (or First Tab) from Navigation there! Solution: We can Hide SharePoint site's Home tab by overriding CSS classes of the the Top Navigation: CSS to Hide Home Tab in SharePoint 2010: <style type="text/css">  .s4-tn li.static > a { display: none !important; /* hide home button sharepoint 2010 */ } .s4-tn li.static > ul a { display: block !important; } </style> Place these styles in your Style Sheet preferably(CSS), / Master Page / Content Editor web part based on your requirement! and the result goes here: home tab hidden in SharePoint 2010 site. SharePoint 2007 hide home tab:  Just grabbed the ID of Home tab with IE developer toolbar, and the CSS code to Hide Home tab in ShareP
How to Hide Home Tab in SharePoint 2007-2010-2013 Top Navigation How to Hide Home Tab in SharePoint 2007-2010-2013 Top Navigation Reviewed by Salaudeen Rajack on February 10, 2013 Rating: 5

Export Import Quota Templates in SharePoint with PowerShell

February 06, 2013    , ,
In SharePoint database attach method migration, Quota templates must be created manually between farms. Its a pain when you have multiple quotas defined. These PowerShell scripts simplifies the process by exporting quotas to a XML file and import it again to another farm. PowerShell Script to Export/Import Quotas between environments: [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") function Export-QuotaTemplates([string]$FileName) { #Get the SharePoint Web Application Service $ContentService =[Microsoft.SharePoint.Administration.SPWebService]::ContentService #Define Quota Templates XML -Container wrap $QuotaTemplateXML = '<QuotaTemplates>' #Get all Quota Templates foreach ($QuotaTemplate in $contentService.QuotaTemplates) { #Add Quota Templates to XML $QuotaTemplateXML += '<QuotaTemplate>'
Export Import Quota Templates in SharePoint with PowerShell Export Import Quota Templates in SharePoint with PowerShell Reviewed by Salaudeen Rajack on February 06, 2013 Rating: 5

Navigation Link Missing in SharePoint Site Settings

February 05, 2013    , , , , ,
Created a site collection for "Marketing" team today and they came with a complaint: "I couldn't see Navigation link under site settings! As 'Navigation' component  gives more options, we need it badly! How do we get it?". Ok, I went to: Site Actions  >> Site Settings >> Look and Feel >> Nope! couldn't see Navigation link. Yes, Navigation link is missing!! instead I see "Quick Launch" and "Top Link Bar" links. Users must have the Full Control or Design permissions on the site to get Navigation link BTW. Cause: The navigation link missing SharePoint 2010 because the site template is based on "Team Site" template. Navigation Link will be available on sites based on Publishing Site/Collaboration site templates or Navigation link appears on site collections with publishing feature enabled. (If not you'd see "Quick Links.") Solution: Activate "SharePoint Server Publishing Inf
Navigation Link Missing in SharePoint Site Settings Navigation Link Missing in SharePoint Site Settings Reviewed by Salaudeen Rajack on February 05, 2013 Rating: 5

SharePoint 2010 Top Navigation Drop Down Menu, Quick Launch Flyout

February 04, 2013    , ,
By default, SharePoint enables top navigation Fly out Menus when Publishing Feature is enabled. Other Site templates like Team Sites doesn't come up with top navigation flyout menus. However we can enable top navigation flyout menus by adjusting few parameters in master page. Open the Master page in SharePoint designer, set " StaticDisplayLevels" to 1 ,   " MaximumDynamicDisplayLevels " to 3, accordingly either in design view or in code view. Save and publish the master page. This is also applicable, when we use custom site map providers for Top navigation! Here is an example of SharePoint 2010 top navigation drop down menu. Flyout Quick Launch Menu Same trick works on SharePoint quick launch navigation as well to bring flyout menus. Adjust the "StaticDisplayLevels" and "MaximumDynamicDisplayLevels" values based on the navigation depth accordingly. (say: 1) And the output goes like this: Before: After the change, SharePoi
SharePoint 2010 Top Navigation Drop Down Menu, Quick Launch Flyout SharePoint 2010 Top Navigation Drop Down Menu, Quick Launch Flyout Reviewed by Salaudeen Rajack on February 04, 2013 Rating: 5
Powered by Blogger.