kwizcom banner advertisement

How to Add Help Desk Contact to Office 365 Help Menu?

December 14, 2018    ,
How to Add Your Help Desk Contact Information to Help Pane in Office 365? Adding your help desk contact information to the help pane in Office 365 - SharePoint Online helps users to quickly access your help desk. Here is how to add custom help desk info: Sign in to Office 365Admin Center as a Global Admin >> In the Office 365 admin center, Click on Settings >> Organization profile Click on Edit Button next to Provide customized help desk contact info Turn ON Help desk card Provide data for fields which you want to display on Card and Click on Save These changes reflect from next time users sign in. You'll find the custom help desk contact details in SharePoint Online, Exchange, etc.
How to Add Help Desk Contact to Office 365 Help Menu? How to Add Help Desk Contact to Office 365 Help Menu? Reviewed by Salaudeen Rajack on December 14, 2018 Rating: 5

SharePoint Online: Find All Large Files using PowerShell

November 12, 2018    , , ,
Requirement: Find all large files in SharePoint Online site collection. How to Find Large Files in SharePoint Online? To find large files in SharePoint Online, you can use "Storage Metrics" page. Navigate to your SharePoint Online site collection >> Click on Settings Gear >> Site Settings In Site Settings page, Click on "Storage Metrics" link under "Site Collection Administration" (https://crescent.sharepoint.com/_layouts/15/storman.aspx) The Storage Metrics page gives you the current Storage consumption of the site. You can navigate to each site/folder objects to get the storage stats of the particular object. You can also include the OOTB "File Size" column in your document library views to get the size of individual files! Explorer view also helps!! SharePoint Online: PowerShell to Get All Large Files in a Site Collection Getting large files by navigating into each folder from the above Storage metrics page is cumb
SharePoint Online: Find All Large Files using PowerShell SharePoint Online: Find All Large Files using PowerShell Reviewed by Salaudeen Rajack on November 12, 2018 Rating: 5

SharePoint Online: How to Apply Column Formatting?

November 09, 2018    ,
Column Formatting in SharePoint Online Column formatting in SharePoint Online modern lists and libraries customizes the field's appearance based on its value. In the past, We used SharePoint Designer and jQuery-CSS methods to format columns. But now in SharePoint Online we can apply formatting to columns with JSON. How to Apply Column Formatting in SharePoint Online List? Column formatting in SharePoint Online Choice, Yes/No, Date columns can be applied with few clicks without even JSON knowledge. Here is how we can use column formatting in SharePoint Online list: To apply formatting on a column in SharePoint Online list or library, Click on a column header, select Column settings from the menu, and then click Format this column .  The Format column panel will open. Click on "Edit Template" link Since this is a choice column, SharePoint displays a a list of all choices with a little color palette icon. Select colors for different choice values and click on app
SharePoint Online: How to Apply Column Formatting? SharePoint Online: How to Apply Column Formatting? Reviewed by Salaudeen Rajack on November 09, 2018 Rating: 5

SharePoint Online: Site Collection Permissions Report using PowerShell

September 06, 2018    , , , ,
Requirement: Generate permissions report for a SharePoint Online site collection. SharePoint Online: Site Collection Permissions Report using PowerShell This PowerShell script generates permission report on all objects which has unique permissions on the given site collection. It scans through following securables: Site collection administrators group Given site collection and sub-sites with unique permissions All lists and libraries with unique permissions All list items with unique permissions. #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" #To call a non-generic method Load Function Invoke-LoadMethod() { param( [Microsoft.SharePoint.Client.ClientObject]$Object = $(throw "Please provide
SharePoint Online: Site Collection Permissions Report using PowerShell SharePoint Online: Site Collection Permissions Report using PowerShell Reviewed by Salaudeen Rajack on September 06, 2018 Rating: 5

SharePoint Online: Permission Report for Specific User in a Site Collection using PowerShell

September 04, 2018    , , , ,
Requirement:   Generate a permission report to audit a specific user's permissions in given SharePoint Online site collection, sub-sites, all its lists, libraries and list items. SharePoint Online PowerShell permissions report This PowerShell script checks user permissions and exports the findings into a CSV file. How to run this script? Just change the Parameters from Line#6 to Line#8 according to your environment and hit run. SharePoint Online: PowerShell to get user permissions on a given site collection  Here is how to check user permissions using PowerShell in SharePoint Online. Please note, there is a limitation in the script: This PowerShell script doesn't scan Active Directory security groups! #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\M
SharePoint Online: Permission Report for Specific User in a Site Collection using PowerShell SharePoint Online: Permission Report for Specific User in a Site Collection using PowerShell Reviewed by Salaudeen Rajack on September 04, 2018 Rating: 5

SharePoint Online: Import Term Group, Term Set, Term from XML using PnP PowerShell

August 15, 2018    , , ,
Requirement: Import Term group, term set and terms data from a XML file to SharePoint Online using PnP PowerShell. XML File with Term Store Data: Here is my XML with Term store data <pnp:TermGroups xmlns:pnp="http://schemas.dev.office.com/PnP/2018/07/ProvisioningSchema"> <!-- Term Group --> <pnp:TermGroup Name="Deals Pipeline" Description=""> <pnp:TermSets> <!-- Term Set 1 --> <pnp:TermSet Name="Region" Description=""> <pnp:Terms> <pnp:Term Name="Africa" /> <pnp:Term Name="Asia" /> <pnp:Term Name="Australasia" /> <pnp:Term Name="Europe" /> <pnp:Term Name="MENA" /> <pnp:Term Name="America" /> </pnp:Terms> </pnp:TermSet> <!-- Term Set 2 --> <pnp:TermSet Name="DealStage" Description=""> <pnp:T
SharePoint Online: Import Term Group, Term Set, Term from XML using PnP PowerShell SharePoint Online: Import Term Group, Term Set, Term from XML using PnP PowerShell Reviewed by Salaudeen Rajack on August 15, 2018 Rating: 5

SharePoint Online: How to Remove Feedback Button?

July 18, 2018    ,
Requirement: Disable feedback button in SharePoint Online! Feedback button in bottom right of SharePoint Online gets your feedback comments to Microsoft Uservoice directly. In my case, End users thought their comments are going to the IT team of the organization and we wanted to hide feedback button in SharePoint Online to avoid the confusion. Disable Feedback Button in SharePoint Online: To remove remove feedback button in SharePoint Online, Open SharePoint Online Management Shell and run this PowerShell script. You'll be prompted for credentials.  #Set parameter values $AdminSiteURL="https://crescenttech-admin.sharepoint.com/" #Connect to SharePoint Online Admin Site Connect-SPOService -Url $AdminSiteURL -Credential (Get-Credential) # Disable Feedback button Set-SPOTenant -UserVoiceForFeedbackEnabled $False This turns off feedback for SharePoint Online at tenant level. We used CSS to hide feedback button in the past. But this is the perfect way to remove
SharePoint Online: How to Remove Feedback Button? SharePoint Online: How to Remove Feedback Button? Reviewed by Salaudeen Rajack on July 18, 2018 Rating: 5

How to Create a Office 365 Group using PowerShell?

May 21, 2018    ,
Requirement: Create New Office 365 Group using PowerShell How to Create an Office 365 Group in the Admin Center? As an admin, you can create office 365 groups through Microsoft 365 admin center. Login to the Microsoft 365 Admin Center site: https://admin.microsoft.com Expand Groups and Click on Groups in the left navigation. Click on "Add a Group" >> Select "Office 365" under Type.  Provide a name for the group and unique email address for the group. Specify the privacy type for the Office 365 Group. Click on "Select Owner" button and choose the owner to manage the group Click on "Add" to start creating the Office 365 group. Once we've created a group, all related resources such as Shared mail box, Calendar, SharePoint Site, etc gets provisioned automatically. Let's see how to create office 365 group via PowerShell. How to Create Office 365 Group using PowerShell? Creating Office 365 group through PowerShell all
How to Create a Office 365 Group using PowerShell? How to Create a Office 365 Group using PowerShell? Reviewed by Salaudeen Rajack on May 21, 2018 Rating: 5

Limit Search Results to a Specific Content Source in SharePoint 2016

May 03, 2018    , ,
Requirement:   HR team wants to setup a dedicated search portal to search a confidential file share. If its SharePoint 2010, we would have created a search scope and added rules to include only that specific content source to it. Now from SharePoint 2013 on wards search scopes has been replaced by result sources. So, lets see how to create a result source to limit search results only from a specific content source in SharePoint 2016. Before starting, I've following things configured already: A content source is created to index the specific file share with name "HR FileShare". Full crawl has been completed already. There is a subsite created with "Basic Search center" template to server as a dedicated search center. How to setup Search Result Source to Limit results to a Content Source? Result Sources can be created on three different levels: Search Service Application, Site collection and Site. For our requirement, lets create it at site level. Here
Limit Search Results to a Specific Content Source in SharePoint 2016 Limit Search Results to a Specific Content Source in SharePoint 2016 Reviewed by Salaudeen Rajack on May 03, 2018 Rating: 5

SharePoint Online: Set Site Column Properties using PowerShell

April 28, 2018    , , , ,
Requirement: Update Properties of a Site Column in SharePoint Online using PowerShell SharePoint Online: Set Site Column Properties using PowerShell CSOM #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" Function Set-SPOSiteColumn($SiteURL,$ColumnName) { #Setup Credentials to connect $Cred = Get-Credential $Cred = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.UserName,$Cred.Password) Try { #Setup the context $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $Ctx.Credentials = $Cred #Check if the site column exists $Fields = $Ctx.web.Fields $Ctx.Load($Fields) $Ctx.ExecuteQuery() $FieldNames =
SharePoint Online: Set Site Column Properties using PowerShell SharePoint Online: Set Site Column Properties using PowerShell Reviewed by Salaudeen Rajack on April 28, 2018 Rating: 5

Disable "New Folder" in SharePoint Online Lists and Libraries

April 28, 2018    , , , ,
Requirement: Disable Folder Creation in SharePoint Online List or Document Library How to Prevent Folder Creation in SharePoint Online? To disable folder creation in SharePoint Online list or library, Go to List or Library Settings >> Click on "Advanced Settings" Under "Folders" section, set "No" for "Make 'New Folder' command available?" This disables "New Folder" option in SharePoint Online. PowerShell to Prevent Folder Creation in SharePoint Online? #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" Function Disable-SPONewFolder($SiteURL,$ListName) { Try { #Get Credentials to connect $Cred= Get-Credential #Setup
Disable "New Folder" in SharePoint Online Lists and Libraries Disable "New Folder" in SharePoint Online Lists and Libraries Reviewed by Salaudeen Rajack on April 28, 2018 Rating: 5

HTML Field Security in SharePoint Online

April 28, 2018    , ,
Requirement: Configure HTML Field Security in SharePoint Online HTML Field Security in SharePoint Online: IFrames can lead to JavaScript injection attack, hence We've a security precaution in SharePoint Online to allow embed scripts only from trusted domains. If you try to add embed script from any other site, You'll get an error message: "Embedding content from this website isn't allowed, but your admin can change this setting. They will need to add 'www.videodomain.com' to the list of sites that are allowed." Add Trusted Domain to HTML Field Security List: SharePoint Online comes with a default list of web sites from which content can be displayed. You can add or remove sites in this list. To add a site to trusted sites list to embed IFrame, follow these steps: Go to Your SharePoint Online Site Collection >> Site Settings >> Click on "HTML Field Security" under Site Collection Administration  Set "Allow contributors
HTML Field Security in SharePoint Online HTML Field Security in SharePoint Online Reviewed by Salaudeen Rajack on April 28, 2018 Rating: 5

Find All OneDrive Site Collections in SharePoint Online using PowerShell

April 23, 2018    , , , ,
Requirement: Get a list of all OneDrive site collections from SharePoint Online. I was asked to get the list of all OneDrive sites to get the usage of OneDrive for Business in our Office 365 tenant. Its bit tricky to find all of your OneDrive site collections and here is how I achieved using Get-SPOSite cmdlet: Find All OneDrive Sites using SharePoint Online Management Shell: Here is the PowerShell script to get all OneDrive site collections in SharePoint Online. $AdminSiteURL="https://crescent-admin.sharepoint.com" #Get Credentials to connect to SharePoint Admin Center $Cred = Get-Credential #Connect to SharePoint Online Admin Center Connect-SPOService -Url $AdminSiteURL –credential $Cred #Get all Personal Site collections and export to a Text file Get-SPOSite -Template "SPSPERS" -limit ALL -includepersonalsite $True | Select URL, Owner | Format-table -autosize | Out-string -width 8096 | Out-file C:\temp\OneDriveSites.txt Just change the $AdminSiteURL t
Find All OneDrive Site Collections in SharePoint Online using PowerShell Find All OneDrive Site Collections in SharePoint Online using PowerShell Reviewed by Salaudeen Rajack on April 23, 2018 Rating: 5

How to Delete Office 365 Group using PowerShell?

April 22, 2018    ,
Requirement: Delete Office 365 Group using PowerShell How to Delete  Office 365 Group? As an admin, you can delete office 365 groups through Microsoft 365 admin center. Login to the Microsoft 365 Admin Center site: https://admin.microsoft.com Expand Groups and Click on Groups in the left navigation.  Select the Office 365 group to delete.  In the details pane, Click on "Delete" button and confirm delete group in Office 365. Delete Office 365 Group using PowerShell To delete Office 365 group using PowerShell, use Remove-UnifiedGroup cmdlet. Here is an example: #Get Credentials to connect $Credential = Get-Credential #Create the session $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ ` -Credential $Credential -Authentication Basic -AllowRedirection #Import the session Import-PSSession $Session -DisableNameChecking -AllowClobber #Delete the Office 365 Group Remove-Unifi
How to Delete Office 365 Group using PowerShell? How to Delete Office 365 Group using PowerShell? Reviewed by Salaudeen Rajack on April 22, 2018 Rating: 5

Find All Office 365 Groups using PowerShell

April 21, 2018    ,
Requirement: Get Office 365 Groups using PowerShell How to Get Office 365 Groups in Admin Center? As an admin, you can get office 365 groups through Microsoft 365 admin center. Login to the Microsoft 365 Admin Center site: https://admin.microsoft.com Expand "Groups" and Click on "Groups" in the left navigation.  In the "View" drop-down, Select "Office 365". That list's all Office 365 groups to the page. Get Office 365 Group Details using PowerShell Use Get-UnifiedGroup cmdlet to get all Office 365 groups in Office 365. #Get Credentials to connect $Credential = Get-Credential #Create the session $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ ` -Credential $Credential -Authentication Basic -AllowRedirection #Import the session Import-PSSession $Session -DisableNameChecking #Get all Office 365 Group Get-UnifiedGroup #Remove the sessio
Find All Office 365 Groups using PowerShell Find All Office 365 Groups using PowerShell Reviewed by Salaudeen Rajack on April 21, 2018 Rating: 5

Call REST API Methods in SharePoint Online from PowerShell

April 20, 2018    ,
Requirement: Call SharePoint Online REST API from PowerShell PowerShell to Call a REST API method in SharePoint Online: Here is how to call SharePoint Online REST API using PowerShell #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" Function Get-SPOUserProfileProperty ($SiteURL, $UserID) { #Setup Credentials to connect $Cred = Get-Credential #Connect to Site $Context = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl) $Context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.UserName,$Cred.Password) $Context.ExecuteQuery() #Frame REST API URL $RequestUrl = "$($SiteUrl)/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accou
Call REST API Methods in SharePoint Online from PowerShell Call REST API Methods in SharePoint Online from PowerShell Reviewed by Salaudeen Rajack on April 20, 2018 Rating: 5

SharePoint Online: How to Disable Quick Launch Bar using PowerShell?

April 19, 2018    , ,
Requirement: Hide Quick Launch Bar in SharePoint Online How to Hide Quick Launch in SharePoint Online? To turn off quick launch in SharePoint Online, Go to: Site Settings >> Click on "Navigation Elements" under Look and Feel Un-Check "Enable Quick Launch" and Click OK. This removes quick launch in SharePoint Online. SharePoint Online: Disable Quick Launch using PowerShell: #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" #Config Variable $SiteURL="https://crescenttech.sharepoint.com/sites/Marketing" #Setup Credentials to connect $Cred = Get-Credential Try { #Setup the context $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $Ctx.Credential
SharePoint Online: How to Disable Quick Launch Bar using PowerShell? SharePoint Online: How to Disable Quick Launch Bar using PowerShell? Reviewed by Salaudeen Rajack on April 19, 2018 Rating: 5

SharePoint Online: PowerShell to Get List Permissions

April 19, 2018    , , , ,
Requirement: Get List Permissions in SharePoint Online using PowerShell How to Get List Permissions in SharePoint Online? To view permissions applied to SharePoint Online list, follow these steps: Navigate to your SharePoint Online List >> Click on Settings Gear >> List Settings On List Settings page, Click on "Permissions on this List" link This page gets you all permissions on the particular list. SharePoint Online PowerShell to Get List Permissions  Here is the PowerShell to get list permissions and export to CSV in SharePoint Online #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" #Function to Get List Permissions Function Get-SPOListPermission([String]$SiteURL, [String]$ListName)
SharePoint Online: PowerShell to Get List Permissions SharePoint Online: PowerShell to Get List Permissions Reviewed by Salaudeen Rajack on April 19, 2018 Rating: 5

SharePoint Online: Clone User Group Memberships using PowerShell

April 19, 2018    , , , ,
Requirement: Clone a user's group permissions to another user in a SharePoint Online Site. PowerShell to Clone User's Group Memberships in SharePoint Online: It's a common real world scenario that when someone leaves the organization and somebody else takes that role they want the same permissions! While the requirement sounds simple, its really cumbersome to achieve it through web user interface. Basically, you have to go to each group where the source user is member of, and add target user to it. Here is how we can automate this task by using PowerShell: #Function to copy group memberships from one user to another Function Clone-SPOUserGroupPermission($SiteURL, $SourceUserID, $TargetUserID) { Try { #Get the Site collection $Site = Get-SPOSite $SiteURL #Get the Source user $SourceUser = Get-SPOUser -Site $Site -LoginName $SourceUserID #Get All groups of the source User $UserGroups = $SourceUser.Groups
SharePoint Online: Clone User Group Memberships using PowerShell SharePoint Online: Clone User Group Memberships using PowerShell Reviewed by Salaudeen Rajack on April 19, 2018 Rating: 5

How to Copy a Folder in SharePoint Online using PowerShell?

April 18, 2018    , , , ,
Requirement: Copy Folder in SharePoint Online using PowerShell How to a Copy Folder in SharePoint Online? Copying a folder in SharePoint Online modern experience is quite simple. Navigate to your SharePoint Online Document Library >> Select the Folder to Copy From the Toolbar, Click on "Copy to" button Select the destination location you want to Copy the folder. You can either choose the same document library/site or choose a different site collection or subsite. Use "Browse Sites" to see a full list of sites that you can copy to. Click on "New Folder" and provide a name to the copy and then Click on "Copy here" button to start copying the folder. This Copies the folder with all its files & sub-folders to the selected destination. Please note, the "Copy To" is not available in SharePoint Online classic experience. SharePoint Online: Copy Folder using PowerShell Lets copy a folder in SharePoint Online usi
How to Copy a Folder in SharePoint Online using PowerShell? How to Copy a Folder in SharePoint Online using PowerShell? Reviewed by Salaudeen Rajack on April 18, 2018 Rating: 5

SharePoint Online: How to Reindex a List or Document Library using PowerShell?

April 17, 2018    , , , , , ,
Requirement: SharePoint Online Reindex list or document library using PowerShell PowerShell to Reindex List in SharePoint Online  Although Items are fully indexed by Full crawl in SharePoint, Reindex feature in SharePoint helps to recrawl and perform full indexing during the next incremental or continuous crawl. #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" #Variables for Processing $SiteUrl = "https://crescenttech.sharepoint.com" $ListName="Projects" #Setup Credentials to connect $Cred = Get-Credential Try { #Setup the context $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) $Ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredenti
SharePoint Online: How to Reindex a List or Document Library using PowerShell? SharePoint Online: How to Reindex a List or Document Library using PowerShell? Reviewed by Salaudeen Rajack on April 17, 2018 Rating: 5

SharePoint Online: PowerShell to List Deleted Sites

April 17, 2018    , , , ,
Requirement: Find All Deleted Site Collections in SharePoint Online How to Get Deleted Sites in SharePoint Online? Deleted site collection are sent to recycle bin in SharePoint Online and stays there for 92 days until they purged permanently. To check if a site collection is deleted and exists in recycle bin, Login to SharePoint Online Admin Center >> Click on "Deleted Sites" link from left navigation (In classic Admin Center, Go to "Site Collections" link from left navigation and click on "Recycle Bin" Icon) From here, You can either restore or permanently delete the site collection! PowerShell to Get Deleted Site Collections in SharePoint Online: Using SharePoint Online Management Shell, you can get a list of deleted site collections as $AdminSiteURL = "https://crescenttech-admin.sharepoint.com" #Connect to SharePoint Online Connect-SPOService -URL $AdminSiteURL -Credential (Get-Credential) #Get all Deleted Sites Get-S
SharePoint Online: PowerShell to List Deleted Sites SharePoint Online: PowerShell to List Deleted Sites Reviewed by Salaudeen Rajack on April 17, 2018 Rating: 5

SharePoint Online: Bulk Delete All List Items using PowerShell

April 16, 2018    , ,
Requirement: Bulk Delete SharePoint Online List Items using PowerShell Delete All List Items in SharePoint Online using PowerShell: We've a list in SharePoint online - Office 365 site with bunch of items. Need them to be deleted in bulk rather deleting one by one from SharePoint web UI. Here is the script to delete list items in bulk in SharePoint online Office 365 using Client Side Object Model (CSOM) with PowerShell. #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" #Variables for Processing $SiteUrl = "https://crescenttech.sharepoint.com/sites/Marketing" $ListName="LargeList" $BatchSize = 100 #Setup Credentials to connect $Cred = Get-Credential Try { #Setup the context $Ctx = Ne
SharePoint Online: Bulk Delete All List Items using PowerShell SharePoint Online: Bulk Delete All List Items using PowerShell Reviewed by Salaudeen Rajack on April 16, 2018 Rating: 5
Powered by Blogger.