Introduction to Managing Microsoft Teams via PowerShell

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello my name is richard from archibald so if you've seen our blog post from earlier this week or you've watched one of our previous videos about messaging policies you might know that now in microsoft teams we can centrally administer and create a policy that can control the default presenter permission in microsoft teams online meetings now this is one of many permission settings that we can set in microsoft teams however as sometimes happens with services and products that are based in the cloud it takes a little bit of time for the user interface to catch up with some of these new options that are available so if you're looking for the new policy setting to configure and administer the default meeting permissions for the presenter role then that's only available in powershell right now it hopefully will come to the user interface later so what we're going to look at today is just a quick introduction to getting access to microsoft teams via powershell so that you can create edit and assign some policies to users now in this video we're not going to cover every different policy type and every different option that's available but what we will do is we'll put you in the right direction to the documentation that's available for this and then hopefully with what you see in the video today you'll know enough to get started if you do have any questions then please feel free to put that in the comments down below alternatively you can reach out to us on facebook or twitter and message us with any questions that you might have okay so let's head on over to the pc and we'll take a look at getting access to teams via powershell so before we can start looking at powershell and getting you managing microsoft teams via powershell there's a couple of things that you're going to need set up on your pc first so if we flick over to a browser we can show you this we'll put a link to this page in the description below so that you've got it for yourselves but basically there's two things that we need the majority of the powershell commands that we're going to be looking at in this video are inside the skype for business powershell module and you can access that by clicking the link on the page here and that will take you to a download page where you can download the skype for business online powershell module that's an msi file that you can install on your pc and then the powershell module is installed that way some of the powershell commands for microsoft teams require a separate microsoft teams powershell module and the way that that's obtained is slightly differently so if we go to this page to show you that instead of installing an msi file we can get that directly from powershell using the install module command and what we can do is we can simply copy this from this page and we can paste that into a powershell window that we've already opened on this machine we've already actually got both modules installed so we open up our microsoft powershell window and we'll paste in the install module command that we copied just a second ago what that's going to do is that's going to attempt to download the powershell module from the internet automatically and what you may get is a warning similar to that that we've got on the screen right now which is that it's trying to download a powershell module from a repository that's not currently marked as trusted we can just hit the y key to say yes we acknowledge that and we want to continue with the download okay so with the powershell module installed it's now time for us to get connected to skype for business and to microsoft teams so what we so now that we've got the powershell modules that we need installed there's one thing that we want to check before we start connecting to microsoft teams and that's what your current powershell execution policy is set to this needs to be set to remote signed or lower if it's set to restricted then you're not going to be able to bring in and import the powershell modules that we need so the way that you can check this is just by using the powershell command get dash execution policy and we can see that our current execution policy is set to remote signed which is perfect okay so the first step that we need to do is we need to create a session for the microsoft teams powershell module and the way that we do that is we use the new cs online session powershell command and we put that into a variable so i'm going to create a variable called dollar session and then we're going to use the new cs online session powershell command now this is entirely optional but especially if you're in a hybrid environment it can sometimes cause issues so what we can do is we can use the parameter override admin domain on the end of this and here you would specify your office 365 tenant name so i'll enter my office 365 tenant name here and then we hit enter so what you're going to see now is an authentication prompt pop-up and obviously this supports multi-factor authentication so if you're using that as i am then you may get a prompt on your phone to provide that okay so there's the mfa prompt so we'll just approve that okay so that's our session created so what we now need to do is we now need to import the command lists that will have come with that session into our current powershell window and the way we do that is using the import ps session command so we enter import ps session and then we type the name of the variable that we just created which in this case was session and what you'll see there is it's importing the commands from those powershell modules into into our current window okay so now that that's done let's take a look at the microsoft teams meeting policies that we've currently got and the way that we do that is with the get cs teams meeting policy powershell command so if we type this in we can use tab to go through all the available commands and we can see there that's the one we want get cs teams meetings policy now the output from that isn't particularly helpful especially when we want to try and look at a specific setting so what we can do is we can pipe the output from that and limit what's returned so what i'm going to do here is i'm going to say that i only want to see the identity and the designated presenter role mode fields and what we see now is we see the names of all of our different teams meeting policies and we also see what the current setting for those is so in the output just here we can see that for our global policy the current designated presenter role mode is set to everyone user override now if we refer to the blog post that we posted recently about how to do this via powershell we'll see that there's four different modes available so the least restrictive the default mode is the mode that it's currently set to everyone use override so what we want to do today is we want to change this to this second option everyone in company user override so that that means when external participants are joining our meetings they're not automatically going to be a presenter okay and so the way we do this is by using the set cs teams meeting policy powershell command so we enter the command set cs teams meeting policy then we need to provide the identity and so the identity of the policy that we want to apply this to in this case is global then we can and add the designated presenter role mode and then we need to just type in the value that we want to set this to so everyone in company user override hit enter and that'll submit the command now what we can do is if we use the up arrow to return to the commands that we've previously entered and then we re-run that previous command to return the results we can see that in our global policy that's now being changed to everyone in company user override so that's global policy but what about if you wanted to set this to a specific set or a specific group of users so what we can do in this case is we can create a new teams meeting policy that you can then assign to specific users so the way we do this is using the new cs teams meeting policy command so we'll enter new cs teams meeting policy for the identity we need to provide a name for the new meeting policy so we'll call this restrict presenters and then we can set our designated presenter role mode to everyone in company user override again if we tab if we use the up arrow to get to our get cs teams meeting policy command again we'll see our new policy that we just created there restrict presenters is now in the list okay so if we wanted to assign this new policy that we've just created to a user then we can use the grant cs teams meeting policy command so what this would look like is grant dash cs teams meeting policy policy name is where we define the name of the policy obviously global you don't need to apply because that automatically applies to everyone but this is if you want to do a user scoped policy so we can do restrict presenters which is the name of the policy that we just created and then identity is where we provide the names of the users so i can enter my name just here and if we hit enter there that would apply that policy just to me okay well hopefully you've enjoyed that introduction to microsoft teams powershell and that's given you enough so that you can get started in managing and creating some policies using some of the options that aren't available via the user interface if you want to see more tips and intros like this then please subscribe to the channel below and if you want to receive notifications when we post new videos then you can also hit the bell icon to get those if you have liked this then please hit the like button and if you have any questions then please feel free to either comment below or reach out to us via facebook or twitter have a good day and happy management you
Info
Channel: Arcible
Views: 6,672
Rating: 5 out of 5
Keywords: Arcible, Explore the Possible, Microsoft Teams, Microsoft Teams PowerShell, Windows PowerShell, Microsoft Teams Meeting Policy, Microsoft Teams Meeting Policies, Microsoft Teams Default Presenter Role, Microsoft Teams Presenter Permission, Configure Microsoft Teams Meeting Policy, Introduction to Microsoft Teams PowerShell, Manage Microsoft Teams via PowerShell
Id: lCrV_nxDyh4
Channel Id: undefined
Length: 12min 26sec (746 seconds)
Published: Fri Jun 05 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.