SharePoint Folder shows Empty in the Windows Explorer!

Problem: SharePoint Online folder appears empty in the File Explorer view! We confirmed the specific folder has files and subfolders in it by browsing through the web browser. However, in the Explorer view, the SharePoint folder appears empty! Here is the Folder in Browser View: The same SharePoint folder shows empty in…

Read more

Download SharePoint Documents from CSV File using PowerShell

Requirement: Download files in SharePoint document library from a CSV file to local disk. PowerShell Script to Download Documents from SharePoint : My CSV has “URL” and “FileName” columns in it, and here is the PowerShell to download SharePoint documents from a CSV file to a local disk or network drive. The…

Read more

Fix “Get-SPWeb : The term ‘Get-SPWeb’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.” Error in PowerShell

Problem: When trying to run a PowerShell script in SharePoint, got this error Get-SPWeb : The term ‘Get-SPWeb’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and…

Read more

How to Change Personal View to Public in SharePoint Online?

Requirement: Change a personal view to public in SharePoint Online How to make a Personal View to Public in SharePoint?  We can not change a personal view to public in SharePoint neither through web UI nor with programmatic approaches (C#, PowerShell, etc). This is because, When a view is created, The SPView.PersonalView…

Read more

Get Documents Inventory for a Site Collection using PowerShell

Requirement: Get All documents inventory in a CSV format from a SharePoint Site collection. PowerShell to Get Documents Inventory of a SharePoint Site: This PowerShell gets all document details from a given site. To generate a report on all documents in a SharePoint Online site collection, use: SharePoint Online: Get All Documents…

Read more

How to use an Encrypted Password File in PowerShell Scripts?

Requirement: Use a encrypted password file in PowerShell scripts. How to use an Encrypted Password File to Read/Write Credentials in PowerShell? PowerShell modules like PnP PowerShell offers a mechanism to use Windows credentials store to Save and retrieve user name and password to use it in scripts. However, for other PowerShell modules…

Read more

How to Map a SharePoint Online Document Library as a Network Drive using PowerShell?

Requirement: Map a network drive to a SharePoint Online library. How to map a network drive in SharePoint Online? At times, You may need to manage/upload/download files and folders in bulk using Explorer view, and mapping SharePoint Online document library as a network drive is necessary to manage the SharePoint folder structure…

Read more

Find out Who has Deleted a Site Collection in SharePoint

Requirement: Find out who has deleted a site collection in SharePoint 2016. How to Find Who Deleted a SharePoint Site? Unfortunately, there are no direct ways to find out who deleted a SharePoint site. The PowerShell cmdlet “Get-SPDeletedSite” gets you all deleted site collections, without any hint about the user who deleted…

Read more

How to Make a Subsite Read-Only using PowerShell?

Requirement: Make a SharePoint Subsite read-only. This method replaces all other permissions applied on the subsite with “Read” and can’t be reverted! Make sure you are proceeding only in scenarios where you don’t need to revert the read-only (E.g. Post migration)! You can take backup of the existing permissions though. How to…

Read more