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 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 the mapped…

Read more

Download SharePoint Documents from CSV File using PowerShell

Requirement: Download files in the SharePoint document library from a CSV file to a local disk. PowerShell Script to Download Documents from SharePoint : If you need to quickly and easily download your SharePoint documents from a CSV file, PowerShell is the tool for you. This quick guide will show you how…

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, I 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…

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: SharePoint Site collections can quickly become cluttered with files and documents. A document inventory can help keep track of what is stored in each site collection and where specific…

Read more

How to use an Encrypted Password File in PowerShell Scripts?

Requirement: Use an 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 SharePoint Online library as a network drive How to map SharePoint Online as a network drive? At times, You may need to manage/upload/download files and folders in bulk using Explorer view, and mapping the 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 server. 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…

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