Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Create, update, license, and delete user with Microsoft Graph PowerShell SDK

  • Get-HelpOffice365
  • 2023-06-17
  • 1439
Create, update, license, and delete user with Microsoft Graph PowerShell SDK
Microsoft Graph PowerShell SDKmicrosoft graph powershell sdkgraphGraphGraph SDKgraph sdksdkSDKget-mguserGet-MgUserpowershellPowerShellpowershell graphPowerShell GraphMicrosoftmicrosoftConnect-MgGraphconnect-mggraphGet-MgContextget-mgcontextGet-MgProfileget-mgprofileNew-MgUsernew-mguserUpdate-MgUserupdate-mguserGet-MgSubscribedSkuget-mgsubscribedskuSet-MgUserLicenseset-mguserlicenseGet-MgUserLicenseDetailget-mguserlicensedetailRemove-MgUser
  • ok logo

Скачать Create, update, license, and delete user with Microsoft Graph PowerShell SDK бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Create, update, license, and delete user with Microsoft Graph PowerShell SDK или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Create, update, license, and delete user with Microsoft Graph PowerShell SDK бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Create, update, license, and delete user with Microsoft Graph PowerShell SDK

This is a how-to video on how to create a new user, assign the new user a license, and then delete the new user. For connections commands please see video on 'How to connect to Microsoft Graph PowerShell SDK'
Admin URLS
Office 365 Admin Center: https://admin.microsoft.com/
Entra Admin Center: https://entra.microsoft.com/

#Set scope permissions before connecting
#NOTE: for this video I will just be setting my scope for modifying user
#Kb for permissions - https://learn.microsoft.com/en-us/gra...
$Scopes = @(
"User.ReadWrite.All"
)

#Connect to Microsoft Graph PowerShell SDK
Connect-MgGraph –Scope $Scopes -ForceRefresh

#Check if your scopes are correct
Get-MgContext | Select-Object –ExpandProperty Scopes
#OR
#(Get-MgContext).Scopes

#view the current API endpoint version
Get-MgProfile

#Test to see if you are now connected properly to the tenant
(Get-MgUser).DisplayName | Sort-Object | Select-Object -First 5 -Skip 1

#Create a new user account
#Set the new users Password
$Password = @{ Password = 'Password1' }

#Create the new user
New-MgUser `
-DisplayName 'New Graph User' `
-PasswordProfile $Password `
-AccountEnabled `
-MailNickName 'NewGraphUser' `
-UserPrincipalName '[email protected]'

#Check if the new user was created
Get-MgUser -UserId "[email protected]" | Select-Object -Property DisplayName, UserPrincipalName, Id | Format-List

#Update new users display name and user principal name
Update-MgUser `
-UserId '[email protected]' `
-DisplayName 'Graph User' `
-UserPrincipalName '[email protected]'

#Check if the new user was update
Get-MgUser -UserId "[email protected]" | Select-Object -Property DisplayName, UserPrincipalName, Id| Format-List

#Assign the new user a license
#KB for more information - https://learn.microsoft.com/en-us/mic...
#Set new users usage location
#ISO 3166-1 alpha-2 country code - https://support.microsoft.com/en-gb/t...
Update-MgUser -UserId "[email protected]" -UsageLocation US

#Check if usage location was update for the new user
Get-MgUser -UserId "[email protected]" | Select-Object -Property DisplayName, AssignedLicenses, UsageLocation | Format-List

#Get a list of licenses currently in the tenant
Get-MgSubscribedSku -All | Select-Object -Property SkuPartNumber, SkuId | Format-List

#Assing the new user a license
Set-MgUserLicense -UserId "[email protected]" -AddLicenses @{SkuId ="f30db892-07e9-47e9-837c-80727f46fd3d"} -RemoveLicenses @()
#Check if the license was applied to the new user
Get-MgUserLicenseDetail -UserId "[email protected]" | Select-Object -Property SkuPartNumber, SkuId

#Remove new user license
Set-MgUserLicense -UserId "[email protected]" -AddLicenses @{} -RemoveLicenses @("f30db892-07e9-47e9-837c-80727f46fd3d")

#Check if license was removed from the new user
Get-MgUserLicenseDetail -UserId "[email protected]" | Select-Object -Property SkuPartNumber, SkuId

#Delete the new user; this does not hard delete the user it just puts them in the recycling bin
Remove-MgUser -UserId "[email protected]"

#Check if the new user was deleted
Get-MgUser -UserId "[email protected]"

#At the end disconnect from Microsoft Graph PowerShell SDK
Disconnect-MgGraph | Out-Null

#Test if you are now disconnected
(Get-MgUser).DisplayName | Sort-Object | Select-Object -First 5 -Skip 1

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]