Posts

Showing posts from 2016

Set default home page using powershell script

Set default master page using the below script #Author: Prem Kumar #Date: Feb 11 2015 param ( [string] $InputedURL = $( Read-Host -prompt "Enter Web Application Root URL" ) ) try { $sourceWeb = Get-SPWeb $InputedURL $oFolder = $sourceWeb .RootFolder ; $oFolder .WelcomePage = "Pages/Home.aspx" ; $oFolder .Update() ; write-host "Home Page set..," ; } catch { write-host "Error in Setting Home Page - $_.Exception.Message" } finally { $sourceWeb .Dispose() }

Set default master page using powershell script

Set default master page using below powershell script #Author: Prem Kumar #Date: Feb 11 2015 param ( [string] $rooturl = $( Read-Host -prompt "Enter Web Application Root URL...?" ) ) try { $web = Get-SPWeb $rooturl write-host "Setting master pages to $rooturl" $web .CustomMasterUrl = "/service/_catalogs/masterpage/CustomMaster.master" $web .MasterUrl = "/service/_catalogs/masterpage/CustomSystemMaster.master" write-host "System and custom master page are set" $web .Update() } catch { write-host "Exception in Set Master Page - $_.Exception.Message" } finally { $web .Dispose() write-host "Exit of Master Page..." }

Create multiple top navigation with CSV data source using Powershell script

Image
1) In this post we will see how to create the top navigation with CSV File as data source using powershell script 2) Also refer below powershell scripts Bulk Creation of Site Columns:  http://www.sharepointbasic.com/2016/11/powershell-script-to-create-bulk-site_27.html Bulk Creation of Site Content Types:    http://www.sharepointbasic.com/2016/12/powershell-script-to-create-bulk-site.html Bulk Lists and Libraries in SharePoint http://www.sharepointbasic.com/2016/12/powershell-script-to-create-bulk-lists.html Bulk File upload to sharepoint library http://www.sharepointbasic.com/2016/12/upload-multiplebulk-files-to-sharepoint.html Create multiple columns inside SharePoint List using Powershell http://www.sharepointbasic.com/2016/12/create-multiple-columns-inside.html Upload List Template and Create List based on List Template using PowerShell http://www.sharepointbasic.com/2016/12/upload-list-template-and-create-list.html 3) Create a CSV File like below 4) C

Upload List Template and Create List based on List Template using PowerShell

Hi All, 1) In this post we will be seeing how to upload a List Template to sharepoint list template folder and use the template to create a list based on the template uploaded . We will be using powershell to achieve this .  2)  Refer the below posts in the powershell series.  Bulk Creation of Site Columns:   http://www.sharepointbasic.com/2016/11/powershell-script-to-create-bulk-site_27.html Bulk Creation of Site Content Types:      http://www.sharepointbasic.com/2016/12/powershell-script-to-create-bulk-site.html Bulk Lists and Libraries in SharePoint http://www.sharepointbasic.com/2016/12/powershell-script-to-create-bulk-lists.html Bulk File upload to sharepoint library http://www.sharepointbasic.com/2016/12/upload-multiplebulk-files-to-sharepoint.html Create multiple columns inside SharePoint List using Powershell http://www.sharepointbasic.com/2016/12/create-multiple-columns-inside.html 3) Use the below code to achieve the functionality #

Create multiple columns inside SharePoint List using Powershell

Image
Hi All, 1) In this post we will be seeing how to add multiple columns inside SharePoint List/Library and adding to the view 2) Refer the below posts in the powershell series.  Bulk Creation of Site Columns:  http://www.sharepointbasic.com/2016/11/powershell-script-to-create-bulk-site_27.html Bulk Creation of Site Content Types:     http://www.sharepointbasic.com/2016/12/powershell-script-to-create-bulk-site.html Bulk Lists and Libraries in SharePoint http://www.sharepointbasic.com/2016/12/powershell-script-to-create-bulk-lists.html Bulk File upload to sharepoint library http://www.sharepointbasic.com/2016/12/upload-multiplebulk-files-to-sharepoint.html 3) Create a CSV File like below 4) Use the below Powershell script #This script creates site columns from the given csv file #Author: Prem Kumar #Date: Feb 11 2015 param ( [string] $rooturl = $( Read-Host -prompt "Enter Web Application Root URL...?" ), [string] $listname = $( Read-Host

Upload Multiple/Bulk files to SharePoint library with folder structure using PowerShell

1) Hi All, In this post we will be seeing how to upload the files from system to SharePoint with the same folder structure and files as in those folder structure using PowerShell script. This will be helpful for deployment. 2) Refer the below posts in the powershell series.  Bulk Creation of Site Columns:  http://www.sharepointbasic.com/2016/11/powershell-script-to-create-bulk-site_27.html Bulk Creation of Site Content Types:     http://www.sharepointbasic.com/2016/12/powershell-script-to-create-bulk-site.html Bulk Lists and Libraries in SharePoint http://www.sharepointbasic.com/2016/12/powershell-script-to-create-bulk-lists.html 3) use the below code param ( [string] $uploadurl = $( Read-Host -prompt "Enter the Folder" ), [string] $path = $( Read-Host -prompt "Enter Web Application Root URL" ) ) function Copy-FilestoSP { Param ( [ parameter ( Mandatory = $true )] [string] $LocalPath , [ parameter ( Ma

KnowledgeLake To Exhibit At SPTechCon In San Francisco on December 5-8 2016

St. Louis, MI /PRNewswire/ -  KnowledgeLake, Inc.  will be at SharePoint Technology Conference (also known as SPTechCon) in San Francisco, California December 5-8 to demonstrate a powerful platform that enhances the power of SharePoint 2013, 2016 and Online. The event will offer more than 80 classes and panel sessions presented by SharePoint experts. KnowledgeLake will be in booth #300. "This is a valuable event for administrators, developers, architects and business people who must deploy, maintain and maximize business value from SharePoint," said KnowledgeLake CEO, Bernie Schweiss. "We are excited to show how our solutions can enable organizations to enhance their SharePoint document imaging and management experience." On Monday, December 5, from 3:30-4 p.m., KnowledgeLake's Senior Director, Dr. Andrew Hutson, will conduct the class, "Top 5 Considerations When Moving Content to SharePoint Online." During this educational session,

Activate Wiki Home Page feature in SharePoint using PowerShell

To Activate the wiki home page feature, use the below code Enable-SPFeature -Identity "WikiPageHomePage" -URL "http://sharepointsite" -Confirm:$False

PowerShell Script to create Bulk Lists and Libraries in SharePoint

Image
1) In this post we will look on how to create bulk or multiple lists/libraries and associate multiple content types to them in SharePoint.   2) Follow the below posts where I have covered   Bulk Creation of Site Columns: http://www.sharepointbasic.com/2016/11/powershell-script-to-create-bulk-site_27.html Bulk Creation of Site Content Types:     http://www.sharepointbasic.com/2016/12/powershell-script-to-create-bulk-site.html 3) Create a CSV in the below format. 4)  Create a powershell script as shown below #This script creates site columns from the given csv file #Author: Prem Kumar #Date: Feb 11 2015 param ( [string] $webUrl = $( Read-Host -prompt "Root Web Application Url...?" ), [string] $CsvFilePath = $( Read-Host -prompt "CSV Path...?" ) ) try { function CreateSharePointLibrary { [ CmdletBinding ()] Param ( [ Parameter ( Mandatory = $true , Position =0, ValueFromPipeline = $true )] [string]

PowerShell Script to create Bulk Site Content Types in SharePoint

Image
1) In this post we will be creating bulk site content types in an sharepoint site by using already created site columns. Refer the below post on how to create multiple or bulk site columns in sharepoint using powershell scripts http://www.sharepointbasic.com/2016/11/powershell-script-to-create-bulk-site_27.html 2) Now coming to create bulk site columns, create a CSV format of site content types information as below Use the above csv format 3) Now use the below code to create bulk site content types at a single shot. #This script creates site columns from the given csv file #Author: Prem Kumar #Date: Feb 11 2015 param ( [string] $SiteUrl = $( Read-Host -prompt "Root Web Application Url...?" ), [string] $CsvFilePath = $( Read-Host -prompt "CSV File Path...?" ) ) try { # Create an array to store the field links to all site columns that will be added to the content type $fieldLinksArray = @ () #Import values from the CSV $ctToBeAd