Fix “Connect-PnPOnline : AADSTS65001: The user or administrator has not consented to use the application with ID ‘31359c7f-bd7e-475c-86db-fdb8c937548e’ named ‘PnP Management Shell’. Send an interactive authorization request for this user and resource.”

Problem: When trying to connect to SharePoint Online using PnP PowerShell user name and password, I got this error message: Connect-PnPOnline : AADSTS65001: The user or administrator has not consented to use the application with ID ‘31359c7f-bd7e-475c-86db-fdb8c937548e’ named ‘PnP Management Shell’. Send an interactive authorization request for this user and resource. Solution:…

Read more

Fix for “Connect-PnPOnline: A parameter cannot be found that matches parameter name ‘interactive'” Error!

Problem: Getting “Connect-PnPOnline: A parameter cannot be found that matches parameter name ‘interactive’” error when tying to connect to SharePoint Online site from PnP PowerShell. Solution: If you get “Connect-PnPOnline : A parameter cannot be found that matches parameter name ‘Interactive’.”, that means you are not running the latest PnP PowerShell module….

Read more

Fix: “Send-MailMessage: SmtpClientAuthentication is disabled for the Tenant.” Error

Problem: When trying to send an Email from PowerShell using Microsoft 365 SMTP Server, I got this error message: Send-MailMessage : The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail. Error: 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is…

Read more

Fix “Sorry, we can’t sync this folder, You’re already syncing a shortcut to a folder from this shared library.” Error in OneDrive

Problem: When trying to sync a SharePoint Online folder by clicking on the Sync button in the library toolbar, I got this error message in Microsoft OneDrive: Sorry, we can’t sync this folder, You’re already syncing a shortcut to a folder from this shared library. Root cause: Apparently, this error indicates the…

Read more

SharePoint Online: View Only Permission Level Missing – Fix

Problem: “View Only” Permission level is missing on SharePoint Online site. Solution: Activate “SharePoint Server Enterprise Site Collection features” The “View Only” permission level allows users to view content and restrict Create/edit/download of documents from the site (documents can be opened in the browser, however). Have you ever needed to give someone…

Read more

How to Reset OneDrive for Business Sync Client?

Requirement: Reset OneDrive for Business sync client app. How to Reset OneDrive for Business? OneDrive for Business is an enterprise cloud storage and sync service from Microsoft. It lets you store your files online, share them with others, and work on them together. The OneDrive for Business sync client makes it easy…

Read more

Fix: “Connect-SPOService: No valid OAuth 2.0 authentication session exists” Error

Problem: When trying to connect to SharePoint Online through PowerShell 7, I received the error message “Connect-SPOService: No valid OAuth 2.0 authentication session exists” on the PowerShell prompt. Solution: When you use PowerShell 7, use the “-UseWindowsPowerShell” switch to import the PowerShell Module for SharePoint Online! Import-Module Microsoft.Online.SharePoint.PowerShell -UseWindowsPowerShell Other Possible solutions:…

Read more

Install-Module : Administrator rights are required to install modules in ‘C:\Program files\WindowsPowerShell\Modules’.

Problem: When trying to install a PowerShell module, got an error message “Install-Module: Administrator rights are required to install modules in ‘C:\Program Files\WindowsPowershell\Modules’ Log on to the computer with an account that has Administrator rights, and then try again, or install ” by adding “-Scope Current User” to your command. You can…

Read more

Fix “Connect-ExchangeOnline Cmdlet Not Recognized” Error in PowerShell

Problem: When I tried to connect to Exchange Online from PowerShell, I received the error message: “Connect-ExchangeOnline : The term ‘Connect-ExchangeOnline’ 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…

Read more

Fix: “We can’t show this embedded content because the code seems to be incomplete. Make sure that the embed code includes width, height and a valid address for the src attribute.” Error

Problem: SharePoint Online Embed web part displays an error message, “We can’t show this embedded content because the code seems to be incomplete. Make sure that the embed code includes width, height and a valid address for the src attribute.” Solution: This is a security setting to prevent malicious scripts from the…

Read more