Let's SharePoint

February 2017

  1. HOME
  2. Monthly Archives: February 2017
February 25, 2017 / Last updated : February 25, 2017 Sethu Client Object Model

How to Configure IRM in SharePoint Online/Office 365 using CSOM?

Hello SharePointers, In this blog, we will see how to configure IRM using CSOM in SharePoint online/ Office 365.   $ClientContext = New-Object Microsoft.SharePoint.Client.ClientContext(“”http://mysharepointsite”) $CCreds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username,$Password) $ClientContextContext.Credentials = $CCreds $Lists = $Context.Web.Lists $ClientContextContext.Load($Lists) $ClientContextContext.ExecuteQuery() $List = $Lists.GetByTitle(“Documents”) $Context.Load($List) $Context.ExecuteQuery() $List.IrmEnabled = $true $List.InformationRightsManagementSettings.PolicyDescription = “My Policy” $List.InformationRightsManagementSettings.PolicyTitle =”My Policy Name” $List.InformationRightsManagementSettings.AllowPrint =  $false $List.InformationRightsManagementSettings.AllowScript […]

February 18, 2017 / Last updated : February 18, 2017 Sethu Customization

How to create a Modern Document Library in SharePoint 2010/2013/Online using CSOM?

Hello SharePointers, Below is the CSOM to create a document library in Sharepoint online using CSOM . ListExperience.NewExperience is the property, we need to  set it up. var SiteURL = @”https://myssharepoint.com/sites/”; var mylogin = “Laks@***.onmicrosoft.com”; var mypassword = “****”; var securePassword = new SecureString(); foreach (char c in password) { securePassword.AppendChar(c); } SharePointOnlineCredentials onlineCredentials = new […]

February 10, 2017 / Last updated : February 10, 2017 Sethu Office 365

What is new in View all site content page in SharePoint online ?

Hi Sharepointers, As you might know that, Sharepoint had modified it’s site contents page . And you can see the following new addition in this fantastic page which gives goosebumps to you. The major highlighted changes are 1. Tips Lot of predefined tips provided by Microsoft such as assigning permissions, Make your site unique, Share […]

February 7, 2017 / Last updated : February 7, 2017 Sethu PowerShell

How to update Person/Group Field in SharePoint 2013/2016 using Powershell?

Hello Sharepointers, In this blog, I will give you the list of steps to update person/group field in a SharePoint document library using Powershell in SharePoint 2013/2016. $web = get-spweb https://mysite/mytest $groups = $web.Groups $customGroupName = $groups[“YourGroupname”] foreach($list in $web.Lists) { if($list.BaseType -eq “DocumentLibrary”) { $listitems = $list.Items foreach ($item in $listitems) { if($item.File.CheckOutType -eq […]

February 3, 2017 / Last updated : February 3, 2017 Sethu Client Object Model

How to Create a SharePoint Subsite using CSOM and Powershell in Sharepoint Online/SharePoint 2013/2016?

Hello SharePointers, In this blog,we will see CSOM code to create a SharePoint subsite in Office 365. $Username = Read-Host -Prompt “Please enter your username” $Password = Read-Host -Prompt “Please enter your password” -AsSecureString $Site = “https://mysite.sharepoint.com” $Context = New-Object Microsoft.SharePoint.Client.ClientContext($Site) $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username,$Password) $Context.Credentials = $Creds $WebCI = New-Object Microsoft.SharePoint.Client.WebCreationInformation $WebCI.WebTemplate = “STS#0” […]

February 2, 2017 / Last updated : February 2, 2017 Sethu Client Side Object Model

How to read Alerts for a specific user using CSOM in SharePoint online/Office 365?

Hello Sharepointers, Below is the sharepoint CSOM code to get list of alerts for a given User. The below CSOM code will give you alert ID, alert Title and its Name. string UserName = “i:0#.f|membership|” + userName; User user = site.EnsureUser(UserName); AlertCollection alerts = user.Alerts; context.Load(alerts); context.ExecuteQuery(); Console.WriteLine(alerts.Count); foreach (Alert alert in alerts) { Console.WriteLine(“Alert […]

February 2, 2017 / Last updated : February 2, 2017 Sethu Office 365

How to get Version history of a Sharepoint list /Library using Powershell in SharePoint 2010/2013 /Online?

Hello Sharepointers, In this blog, we will try to see the list of steps involved in getting version history of a sharepoint list in a sharepoint site using Powershell. $WebURL=”Site URL” $ListName =”List Name” $ReportFile = “C:\Results.csv” $List = $web.Lists.TryGetList($ListName) #Check if list exists if($List -ne $null) { #Get all list items $Items = $List.Items […]

Recent posts

How to insert table in Modern Pages using PnP Powershell in Office 365/Sharepoint Online?

June 7, 2019

How to set up Access Requests in SharePoint online using Powershell?

May 11, 2019

How to change the default SharePoint suite logo in SharePoint 2013/2016/2019?

April 30, 2019

How to add metadata to Document libraries in SharePoint online using powershell.

April 27, 2019

How to get Sharepoint site details using Powershell in Office 365?

April 17, 2019

How to get alerts for a specific policy in Cloud app security using Powershell

April 16, 2019

How to get the list of custom apps in App catalog using Powershell?

April 9, 2019

How to get the list of policies in Microsoft Cloud app security using window powershell?

April 4, 2019

How to get the list of List and Document library item counts in SharePoint online using Pnp Powershell ?

April 4, 2019

How to restore subsite in a Sharepoint online site collection using Pnp Powershell

April 2, 2019

Category

  • Anonymous access
  • Client Object Model
  • Client Side Object Model
  • Customization
    • Customization
  • Designer Workflows
  • Errors & Resolutions
  • Features
  • Google Analytics
  • InfoPath
  • Item Scheduling
  • JSOM
  • Nintex worflows
  • Office 365
  • Office 365 Groups
  • PnP JS Library
  • PowerShell
  • Powershell Online
  • REST API
  • REST API's
  • Server Side Object Model
  • SharePoint 2010
  • SharePoint 2010 Search
  • SharePoint 2013
  • SharePoint 2013 Search
  • SharePoint 2013 Workflows
  • SharePoint 2016
  • SharePoint 2019
  • SharePoint Designer
  • SharePoint Framework
  • SharePoint Online
  • SharePoint Pnp
  • SharePoint Usage Analytics
  • Unique values
  • User Profile Services
  • Windows Powershell
  • Workflow Manager

Archive

  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • January 2016
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • May 2015
  • April 2015
  • March 2015

Copyright © Let's SharePoint All Rights Reserved.

Powered by WordPress & Lightning Theme by Vektor,Inc. technology.