PowerShell 複製 Connect-MgGraph -Scopes "User.Read.All", "Group.ReadWrite.All" Use device code flow: PowerShell 複製 Connect-MgGraph -Scopes "User.Read.All", "Group.ReadWrite.All" -UseDeviceAuthentication Use your own access token: PowerShell 複製 Connect-MgGraph -AccessToken $Acces...
在開始執行 Cmdlet 之前,請先確定您已藉由執行 Connect-MgGraph cmdlet- 來連線到組織。 指派授權給群組 群組型授權提供方便的方式來管理授權指派。 您可以將一或多個產品授權指派給群組,並將這些授權指派給群組的所有成員。 PowerShell 複製 # Import the Microsoft.Graph.Groups module Import-Module Microsoft.Gr...
Learn about the features of Microsoft Graph PowerShell that can help you derive insights and analytics, and build unique, intelligent apps.
New-MgMigrationPlan -FilePath “<Location to your script>” -GraphProfile Beta This will subject the whole script to the naming convention of commands as per expectations with PowerShell v2 Scenario 3: Identify changes on a script and generate a new v2 compliant script. New-MgMigrationPlan -F...
另请参阅安装 Microsoft Graph PowerShell SDK和从 Azure AD PowerShell 升级到 Microsoft Graph PowerShell,了解如何分别安装和升级到 Microsoft Graph PowerShell。 先决条件 PowerShell 7 及更高版本是建议在所有平台上与 Microsoft Graph PowerShell SDK 配合使用的 PowerShell 版本。 将 SDK 与 PowerShell 7 或...
Receives regular updates: Microsoft Graph PowerShell commands are updated regularly to support the latest Graph API updates. Upgrading to Microsoft Graph PowerShell Scripts written in Azure AD PowerShell won't automatically work with Microsoft Graph PowerShell. The new cmdlet names have been designed ...
Connect-MgGraph -ClientId "YOUR_APP_ID" -TenantId "YOUR_TENANT_ID" -CertificateThumbprint "YOUR_CERT_THUMBPRINT" Using Certificate name: PowerShell Copia Connect-MgGraph -ClientId "YOUR_APP_ID" -TenantId "YOUR_TENANT_ID" -CertificateName "YOUR_CERT_SUBJECT" Using a certificate: PowerShe...
Consider a scenario where users were mixing v1.0 and beta commands, a situation where almost everything needed is available in Microsoft Graph v1 endpoint and only a couple of preview APIs that are only available in beta. With the Microsoft Graph Power...
The Microsoft Graph PowerShell SDK is made up of a set of modules that enable you to interact with the Microsoft Graph API using PowerShell commands. The modules consist of commands that act as wrappers for the API, allowing you to access all the features and functionality of the API ...
Microsoft Graph APIhttps://www.powershellgallery.com/packages/MicrosoftGraphAPI/0.1.4 值得注意的是,它的最后更新时间是2016年4月27日。 安装Microsoft Graph API 模块 这个模块需要在本地安装才能执行,请用管理员身份打开PowerShell,然后执行如下的命令 Install-Module -Name MicrosoftGraphAPI ...