PowerShell: Connect to Microsoft Office 365 Cloud

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • CONNECT TO MICROSOFT CLOUD SERVICES (Azure, Microsoft 365)
    1. Connect to Azure
    Install-Module Az -Force -AllowClobber
    Connect-AzAccount
    Get-AzVM
    2. Connect Azure AD
    Install-Module AzureAD -Force -AllowClobber
    Connect-AzureAD
    Get-AzureADUser
    Get-AzureADUser | Select-Object DisplayName,GivenName,Surname,Mail,UsageLocation | Format-Table
    Get-AzureADSubscribedSku | Format-Table -AutoSize -Wrap
    Get-AzureADDomain
    Get-AzureADDomain | Select-Object Name,AuthenticationType,IsDefault,SupportedServices
    3. Connect to Exchange Online
    Install-Module ExchangeOnlineManagement -Force -AllowClobber
    Connect-ExchangeOnline
    Get-Mailbox
    4. Connect to MSTeams
    Install-Module MicrosoftTeams -Force -AllowClobber
    Connect-MicrosoftTeams
    Get-Team
    5. Connect to SharePoint
    Install-Module -Name Microsoft.Online.SharePoint.PowerShell -Force -AllowClobber
    Connect-SPOService -Url 'sid500-admin.s...' -Credential (Get-Credential)
    Get-SPOSite
    Get-SPOTenant
    -AllowClobber: Overrides warning messages about installation conflicts about existing commands on a computer
    -Force: Installs a module and overrides warning messages about module installation conflicts. If a module with the same name already exists on the computer, Force allows for multiple versions to be installed.
    www.udemy.com/...

Комментарии •