Is SharePoint 2016 Management Shell the same as Sharepoint Online management shell?

Tevon2.0 1,106 Reputation points
2022-12-01T17:35:44.137+00:00

Curious if it's the same because when I search Sharepoint Powershell online that's the only thing that pops up. I am building a site collection in with SharePoint 2019 on premise within a sandbox environment. Since I'm on a server and not fully connected to office 365 what should I be using to run my commands? Please provide a link if possible.

Microsoft 365 and Office SharePoint Server Development
0 comments No comments
{count} votes

Accepted answer
  1. Jinwei Li-MSFT 4,736 Reputation points Microsoft External Staff
    2022-12-02T02:15:52.177+00:00

    Hi @Tevon2.0 ,

    Accessing PowerShell for SharePoint Server:

    After you install SharePoint Server, applicable PowerShell cmdlets are available in the SharePoint 2016 Management Shell. You can manage most aspects of SharePoint Server in the SharePoint Management Shell. You can create new site collections, web applications, user accounts, service applications, proxies, and more. Commands that you type in the SharePoint Management Shell return SharePoint objects that are based on the Microsoft .NET Framework. You can apply these objects as input to subsequent commands or store the objects in local variables for later use.

    With the SharePoint Management Shell, you do not have to register the snap-in that contains the cmdlets. Registration of the Microsoft.SharePoint.PowerShell.dll module for SharePoint Server cmdlets is automatic, as a result of the Add-PSSnapin Microsoft.SharePoint.PowerShell line in the SharePoint.ps1 file that is located in %CommonProgramFiles%\Microsoft Shared\Web Server Extensions<version>\Config\PowerShell\Registration, where version "15" equals SharePoint Server 2013, and version "16" equals SharePoint Server 2016. To use the PowerShell console, you must register this snap-in manually.

    I have found this official article to introduce SharePoint PowerShell, it includes Server and Online.
    SharePoint PowerShell

    You could select the PowerShell what you need from the options on the left box.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.