Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Connect to SharePoint Online PowerShell in Windows 10, 11

October 16, 2023
in Blog, Microsoft 365, Powershell, SharePoint Online
0
ADVERTISEMENT

Table of Contents

SharePoint Online PowerShell

Why should we use PowerShell to Manage SharePoint Online? If you’re a SharePoint administrator, you know that PowerShell is your best friend. With PowerShell, you can automate many tasks that would otherwise take a long time to complete. Not just that, There are several reasons why we use PowerShell:

  • Perform bulk operations – E.g. Applying settings to all sites, document libraries, etc.
  • Generate reports – E.g., Export all user permissions from a site
  • Certain operations can be done and available only through PowerShell
  • Query and Filter the data
  • Configure services, Manipulate objects, etc.

Install the SharePoint Online PowerShell module

1️⃣ Right click on the Windows start icon then open Windows PowerShell Admin or Terminal Admin in Windows 11.

Pw3

2️⃣ Copy then paste all below commands into PowerShell window at once to install SharePoint online PowerShell module and connect to SharePoint online PowerShell.

Note Note: You just need install the PowerShell module only once. In the next time, let's open PowerShell then run Connect-SPOService to connect to SharePoint Online PowerShell.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine -Force
Install-PackageProvider -Name NuGet -Force
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
Update-Module -Name Microsoft.Online.SharePoint.PowerShell
Connect-SPOService

3️⃣ Now, you need enter the URL of your organization SharePoint admin. You can get it by visit Microsoft 365 admin center | SharePoint admin center.

PS C:\> Connect-SPOService
cmdlet Connect-SPOService at command pipeline position 1

Supply values for the following parameters:
Url: https://bbguides-admin.sharepoint.com/
Bg1579
Bg1580

4️⃣ A new small window opens, let’s sign-in using a global admin account.

5️⃣ Once done, you can run the following command to verify it works.

Get-SPOSite

Url                                             Owner Storage Quota
---                                             ----- -------------
https://bbguides.sharepoint.com/sites/m365g                26214400
https://bbguides.sharepoint.com/sites/BonBen599            26214400
https://bbguides.sharepoint.com/sites/BonBen               26214400
https://bbguides.sharepoint.com/                           26214400
https://bbguides.sharepoint.com/sites/SSPS                  1048576
https://bbguides.sharepoint.com/search                     26214400
https://bbguides-my.sharepoint.com/                        26214400

Not a reader? Watch this related video tutorial:

5/5 - (3 votes)
Previous Post

How to Get The List of All Azure Regions Using PowerShell

Next Post

How to Install Google Chrome Silently using PowerShell

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory