У нас вы можете посмотреть бесплатно How to connect to MsolService with PowerShell или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
This is a quick how-to on connecting to an office 365 tenant to administrate over the office 365 admin center[admin.microsoft.com] using PowerShell. #On the local machine open PowerShell as an administrator. #To Check what version of PowerShell you are using use the below command make sure that you are running 'Desktop' $PSVersionTable #Check your Execution Policy #For demonstrations I will set my execution policy to 'Unrestricted' #To check the execution policy value for the local machine Get-ExecutionPolicy -Scope LocalMachine #To set the local machine to unrestricted Set-ExecutionPolicy -Scope "LocalMachine" -ExecutionPolicy "Unrestricted" #Check for NuGet Get-PackageProvider | Where-Object {$_.Name -EQ "NuGet"} | Select-Object -Property Name, ProviderName, Version, ProviderPath, FromTrustedSource | Format-List #Check for 'PSGallery' repository Get-PSRepository -Name "PSGallery" | Select-Object -Property * #Getting quick details on MSOnline Module Find-Module -Name "MSOnline" -Repository "PSGallery" | Select-Object -Property Name, Version, Author, CompanyName, Copyright, PublishedDate, RepositorySourceLocation, Repository, PackageManagementProvider #List commands in Module (Find-Module -Name "MSOnline" -Repository "PSGallery").Includes.Cmdlet | Sort-Object #Checking if module has a Connect command (Find-Module -Name "MSOnline" -Repository "PSGallery").Includes.Command | Where-Object {$_ -LIKE "Connect-*"} #Checking module for a Disconnect command #For this case there is no disconnect command the below commands has no output (Find-Module -Name "MSOnline" -Repository "PSGallery").Includes.Command | Where-Object {$_ -LIKE "Disconnect-*"} #Check if MSOnline module is already installed on the machine Get-InstalledModule -Name "MSOnline" #If it is not installed use the below command to install it. Install-Module -Name "MSOnline" -Repository "PSGallery" #Import MSOnline module into current PSSession Import-Module -Name "MSOnline" #Update MSOnline module Update-Module -Name "MSOnline" #Connect to Microsoft 365 with your Global Administrator account Connect-MsolService #Check if you are connected to your tenant (Get-MsolUser).DisplayName | Select-Object -First 5 | Sort-Object -Property DisplayName #At the end disconnect from MsolService [Microsoft.Online.Administration.Automation.ConnectMsolService]::ClearUserSessionState()