Let's SharePoint

November 2016

  1. HOME
  2. Monthly Archives: November 2016
November 22, 2016 / Last updated : November 22, 2016 Sethu Office 365

How to Disable Versioning in Document Library in Sharepoint online Powershell?

Hello SharePointers, Below is the powershell code to disable verisoning in all Document Libraries in a Web in SharePoint online. $context=New-Object Microsoft.SharePoint.Client.ClientContext($url) $context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password) $context.Load($context.Web.Lists) $context.Load($context.Web) $context.Load($context.Web.Webs) $context.ExecuteQuery() Write-Host $ctx.Url -BackgroundColor White -ForegroundColor DarkGreen foreach( $list in $context.Web.Lists) { if ($list.BaseType -eq “DocumentLibrary”) { $list.EnableVersioning = $false $list.Update() } Happy Sharepointing 🙂

November 18, 2016 / Last updated : November 18, 2016 Sethu Office 365

How to Enable Versioning in Document Library in Sharepoint online Powershell?

Hello SharePointers, Below is the powershell code to enable verisoning in all Document Libraries in a Web in SharePoint online. $context=New-Object Microsoft.SharePoint.Client.ClientContext($url) $context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password) $context.Load($context.Web.Lists) $context.Load($context.Web) $context.Load($context.Web.Webs) $context.ExecuteQuery() Write-Host $ctx.Url -BackgroundColor White -ForegroundColor DarkGreen foreach( $list in $context.Web.Lists) { if ($list.BaseType -eq “DocumentLibrary”) { $list.EnableVersioning = $true $list.Update() } Happy Sharepointing 🙂

November 18, 2016 / Last updated : November 18, 2016 Sethu Office 365

How to Enable versioning in all SharePoint Lists in Sharepoint online Powershell

Hello SharePointers, Below is the powershell code to enable verisoning in all Sharepoint lists in SharePoint online. $context=New-Object Microsoft.SharePoint.Client.ClientContext($url) $context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password) $context.Load($context.Web.Lists) $context.Load($context.Web) $context.Load($context.Web.Webs) $context.ExecuteQuery() Write-Host $ctx.Url -BackgroundColor White -ForegroundColor DarkGreen foreach( $list in $context.Web.Lists) { $list.EnableVersioning = $true $list.Update() } Happy Sharepointing 🙂

November 11, 2016 / Last updated : November 11, 2016 Sethu Office 365

How to Modify SharePoint List View using SharePoint Online Powershell?

Hello SharePointers, Below is the piece of Sharepoint Online Powershell code to modiy Sharepoint List view. Add-PSSnapin “Microsoft.SharePoint.PowerShell” $siteUrl = “https://mytenant.sharepoint.com/sites/site” $username = “admin@tenant.onmicrosoft.com” $password = Read-Host -Prompt “Enter password” -AsSecureString $context = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl) $credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password) $context.Credentials = $credentials $listname = $context .get_web().get_lists().getByTitle(‘MyCustomList’); $Defaultview = $listname .DefaultView $DefaultView.ViewFields.Add(“Employee Address”) $DefaultView.ViewFields.Add(“Employee Name”) […]

November 9, 2016 / Last updated : November 9, 2016 Sethu Office 365

How to upload a page to a Document libarary using SharePoint online Powershell?

Hello SharePointers, In this blog, you will find a piece of code to upload a file to a document library using SharePoint online Powershell. $FolderName = “C:\Myfolders” $DocLibName = “CustomLibrary” Add-Type -Path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll” Add-Type -Path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll” $Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $Credent = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password) $Context.Credentials = […]

November 2, 2016 / Last updated : November 2, 2016 Sethu Client Side Object Model

How to get the list of users with specific roles in SharePoint online using CSOM?

Hello SharePointers, In this blog, we can take a look at the CSOM code to  get the list of users with specific roles in SharePoint online using CSOM. using (var context = new ClientContext(siteurl)) { context.Credentials = new SharePointOnlineCredentials(userEmailAddress, password); context.Load(context.Web, w => w.Title); context.ExecuteQuery(); var users = context.LoadQuery(context.Web.SiteUsers); context.ExecuteQuery(); foreach(var user in users) { Console.WriteLine(user.Name); […]

November 2, 2016 / Last updated : November 2, 2016 Sethu Office 365

Sorry, this site can’t be saved as a template. It contains apps that don’t work in templates: Nintex Forms for Office 365 Nintex Workflow for Office 365

Hi Team, When you are trying to save a site as template for a site , you may face this issue “Sorry, this site can’t be saved as a template. It contains apps that don’t work in templates:  Nintex Forms for Office 365  Nintex Workflow for Office 365 ” The resoultion is pretty simple. Just […]

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.