SharePoint online management shell74

Author: InfoBeep - May 30, 2018 | subject to copyright

Can you just believe that the starting of the SharePoint had been done in 2001? Fourteen years ago from today, and it is very difficult for finding a company which does not use the platform in a few capacities.

The SharePoint Online Management Shell is a window PowerShell module which you can use for managing the SharePoint Online sites, users, and site collection. In Windows PowerShell, the operations of the Command-line are composed of a series of commands. Every command uses the cmdlet. The set of settings is known as parameters.

According to the Association for Information and Information Management (AIMM), in every two companies from all over the world, one uses SharePoint. Almost every staff uses collaboration and communication platform of Microsoft in 22% of companies.

It is not easy being the SharePoint Admin

It is not an easy job to be the administrator of a SharePoint. From the end users for helping them to manage over and over, administrators will get many wonderful as well as abnormal queries. Often it can get seriously boring for the admin for doing the same thing again and again.

We will have to repeat these words, again and again, form the graphical user interface if there is no PowerShell for performing these steps. You will not only waste your energy but also your valuable time which you can use in necessary tasks.

It is best to make the site collections, groups easier and the job of managing the users although there is the limited set of the cmdlets of SharePoint Online Management Shell. Where there is no access to the service and admin has to depend on GUI, the release of SharePoint Online Management is very useful.

For admin, PowerShell provides the appropriate way to adopt automation activities which are used in a daily task. For each task of admin, administrators can prepare Shell of scripts.

So that whenever there is raise of the new ticket, admin can directly use that script from the PowerShell. This means that there is no need for the administrators to log into the SharePoint Admin and use too many steps.You can do it by the implementation of the single script.

SharePoint is almost like Soccer: It also needs a Manager

In soccer, we can see that the club manager of the Soccer spends most of their time shouting at the players from the sidelines. This activity seems to be very strange but it also has a special purpose.

The individual players of soccer specialize in what they do best, whether it can be attack or defence. The team needs special people who can do the overview of all the individual players and also what’s going on. This helps in making a successful team.

If you are the manager of a SharePoint don’t take the above given saying as you can start shouting at your staffs. Rather, it means that you need to make the best plan for making a successful environment for your SharePoint.

Your ‘Right Hand Man’ will be the PowerShell for SharePoint

PowerShell is very easy as well as effective tool which you can use for managing a SharePoint. Everything which you can do from the central administration of the SharePoint, you can just by using the PowerShell. It will be much easy for you.

PowerShell will help you in managing the SharePoint consistently and in an accurate way and it also decreases the pain of the low-status task.

There are fix options for the administrators of a SharePoint for using a PowerPoint with host SharePoint on the office 365. Somehow, with the SharePoint Online Management Shell which has been recently released, it will be very easy for managing the SharePoint Online from any of the remote computers.

In comparison to the On-Premises, there is no availability of every command online. But it will surely be the great starting.

What do you need to install?

Office 365 is not built into Windows yet, so you should install the modules and helpers which are necessary for connecting to and using the PowerShell. This will include Skype for Business Online, modules for SharePoint Online and an Azure Active Directory for Office 365.

We will also know about the Exchange Online functionality, but it is not necessary for installing those cmdlets. Instead of that, you will use PowerShell Remoting.

Instead of that, there is another option for us. “SharePoint people” is practising the PowerShell module and installing the Patterns from PNP team of Microsoft. These cmdlets are really awesome and help you in doing more, a lot more.

They have the cmdlets for the things like getting and setting all kinds of properties, working as well as creating with the list and their content, and many more. Till now, there are 181 cmdlets. They all are written with the special purpose.

I wouldn’t talk more and jump straight to the PowerShell PNP, we will talk about it in another article. It is because I am mean but because you just need to get started with the cmdlets so that you can know the functionality which they offer and so that the magic of the PNP can be appreciated by you.

Also, it will not help you in managing your licenses, Skype, Exchange, accounts, or your other experience of the Office 365 even if the PNP is greater for SharePoint. For this, the default cmdlets are made to do. So, let’s get up and start running with them today.

Installing the Modules

All the things for installation can be done very easily and it is one of the miracles of the PowerShell. Just couples of fast lines and here you are.

You are running, but before you can do that all, you should install the sign-in assistant. There’s no problem in doing it, you can do it very easily in just a couple of minute.

  • First of all, install the Sign-in Assistant. You need to choose between 32bit and 64bit. 32bit stuff has been deprecated and you want 64bit. Once you completely download it open it, just accept the license terms of an option, click install, and click finish. It’s pretty easy.
  • After that, install the Azure Active Dictionary Module. Yes, you will need it. Remember that the Office 365 is built on the top of Azure AD. So you are using it even if you think you are not. You can choose between the previous bits or the general availability (GA) bits. GA will be best for you if you are still in the learning phase. Once you download it, open it, after that click next, next, install, and finish. Now our work worked here.
  • Then install the SharePoint Online Module. There’s no doubt that you care most about the price. So pick the version of 64-bit. When you completely download it, open it, accept the license terms, click install, and click finish. Not too difficult.
  • Then, install the Skype for Business Online Module. For now, I will skip the Skype name jokes and focus on the path. Once you successfully download it, open it, accept the license terms, click install, and close. Like other installs, why couldn’t they also use finish?

Now you have installed everything which is needed, so it’s time for figuring out what happened to Exchange Online and to get connected for the first time.

How does it work?

Behind the scenes, the SharePoint Client Object Module is used by the SharePoint Online Management Shell in order to get the required output. It sends the request in the format of XML to the lists.asmx service in the SharePoint.

For the execution of cmdlet ‘Get-SPO site’, below given are the fiddler trace on the SharePoint Online Management Shell.

Before you connect, a few things you should consider

You need to run PowerShell as an administrator

For being an administrator just right-click on the icon of the PowerShell and select ‘Run as Administrator’. You should know about this requirement because almost everything in PowerShell requires this advantage.

You should be able to run scripts which are Remote Signed

Security of a PowerShell varies according to the version of the PowerShell which you are running and on what operating systems. So you need to recheck your settings quickly.

Type Get-Execution Policy in the window of your PowerShell. You will need to change it if you get any restriction but if you got any other value then you are good to go. I would suggest you for using the Set-Execution Policy Remote Signed command if you need to make a change.

But here, we are not in the topic about changing your security settings of PowerShell, I will recommend you to focus on the setting better. The good news is that the ‘Remote Signed’ is the most restrictive setting which allows you for using PowerShell with Office 365.

You need to be an administrator of an Office 365

I haven’t made any of the rules, so don’t judge at me. Well, the good news is that you can use the PNP cmdlets even if you are not the administrator of Office 365.

I conclude that you have been running PowerShell 3.0 or later

The main reason is that if you use 3.0 or later then the modules will automatically import as you use their cmdlets. So I am leaping all the steps of import module. You can use ‘$PS Version Table.PS Version’ if you are willing to check the version of your PowerShell. You will get all the information which you need.

You are only looking for a 3 or greater in the main column and I am here with Windows 10 desktop on version 5. Usually, I do all of the given steps on my own local desktop and there is no doubt that you can also do so.