SharePoint Online: How to a Get List using PowerShell?

Requirement: SharePoint Online PowerShell to Get a List or document library. SharePoint Online: Get List from PowerShell If you are managing SharePoint Online, managing lists is a common requirement as part of your job. In this blog post, we will be looking at how to use PowerShell to get a list from…

Read more

Import-Module: The specified module ‘Microsoft.Online.SharePoint.Powershell’ was not loaded because no valid module file was found in any module directory.

Problem: When trying to add the PowerShell module for SharePoint Online, using “Import-Module Microsoft.Online.SharePoint.PowerShell”, it resulted in the below error in both PowerShell console and in PowerShell ISE. “Import-Module : The specified module ‘Microsoft.Online.SharePoint.Powershell’ was not loaded because no valid module file was found in any module directory.” Solution: 

Read more

SharePoint Online: Create a Custom Permission Level using PowerShell

Requirement: Create a new permission level in the SharePoint Online site collection for “Contribute without delete” permissions. SharePoint Online Permission Levels: SharePoint Permission levels are a set of actions users can perform in SharePoint, packaged as a group, to make permission management easier. So, Instead of providing individual permissions to users and groups,…

Read more

SharePoint Online: PowerShell to Create a Document Library

Requirement: Create a Document Library in SharePoint Online using PowerShell. Create Document Library using PowerShell in SharePoint Online: The document library is the most commonly used type of library in SharePoint Online used to store and collaborate Office documents such as Word, Excel, PowerPoint, etc. SharePoint Online document libraries come with default…

Read more

Fix for “Cannot Connect to Database Master at SQL Server at Server Name. The Database might not exist, or the current user does not have permission to connect to it” SharePoint Error!

Problem:When trying to create a new SharePoint farm using PowerShell, the SharePoint 2016 management Shell gave an error message:New-SPConfigurationDatabase : Cannot connect to database master at SQL server at <SQL-Server-Alias>. The database might not exist, or the current user does not have permission to connect to it. I also tried using SharePoint…

Read more

How to Create New Target Application ID in Secure Store Service for BCS in SharePoint 2016?

When you want to consume external data in SharePoint, such as data from your other business applications, you can use Business Connectivity Services (BCS) together with Secure Store Service. The external data source that you can connect to is called a Secure Store Target Application. BCS makes it possible for you to…

Read more

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

Requirement: Hide a list or library from the SharePoint Online site. How to hide a SharePoint list from users by setting permissions? You can also hide a SharePoint Online list or document library by setting its permissions so that only specific users can access it. Once you are done with these changes,…

Read more