重要 自 2024 年 3 月 30 日起,Azure AD 和 MSOnline PowerShell 模組已被取代。 若要深入瞭解,請閱讀 淘汰更新。 在此日期之後,這些模組的支援僅限於 Microsoft Graph PowerShell SDK 和安全性修正的移轉協助。 已被取代的模組將會繼續運作到 2025 年 3 月 30 日。 建議
MSonline 在以下具有默认版本的 Microsoft .NET Framework 和 Windows PowerShell 的 Windows 操作系统上受支持:Windows 8.1、Windows 8、Windows 7 Windows Server 2012 R2、Windows Server 2012 或 Windows Server 2008 R2。 安装模块的最简单方法是从PowerShell 库。 可以使用 Install-Module cmdlet 安装该模块: ...
PowerShell 复制 PS C:\> New-MsolUser -UserPrincipalName "davidchew@contoso.com" -DisplayName "David Chew" -FirstName "David" -LastName "Chew" 此命令创建用户。用户未分配任何许可证。为用户生成随机密码。 示例2:创建用户并分配许可证 备注 -LicenseAssignment 参数已弃用。 了解如何使用 Microsoft ...
$Total=@()$lic1="myt:EXCHANGESTANDARD"$lic2="myt:EXCHANGEENTERPRISE"$lic3="myt:O365_BUSINESS"$lic4="myt:O365_BUSINESS_ESSENTIALS"$lic5="myt:O365_BUSINESS_PREMIUM"$lic6="myt:SPB"$lic7="myt:ATP_ENTERPRISE"$lic8="myt:POWER_BI_PRO"$LicensesList=($lic1,$lic2,$lic3,$lic4,$lic5,...
PowerShell Copy Install-Module MSOnline Connect to Azure ADBefore you can run any of the cmdlets discussed in this article, you must first connect to your online service. To do so, run the cmdlet Connect-MsolService at the Windows PowerShell command prompt. You will then be prompted for ...
Powershell: get data from MsOnline Hi all, I would extract some "basic" data like "UserPrincipalName, DisplayName, licenses, islicensed, creation date, last activation date" and others "nested" like AlternateEmailAddresses. If po... mfranhind115Wrote a post about getting the license state ...
MSOnline PowerShell 1.0 概觀 參考 MSOnline 下載PDF 閱讀英文版本 新增 新增至集合 新增至計劃 分享方式: Facebookx.comLinkedIn電子郵件 列印 參考 意見反應 模組: MSOnline 停用Azure Active Directory 中的裝置物件。 語法 PowerShell Disable-MsolDevice-DeviceId<Guid> [-Force] [-WhatIf] [-Confirm] [<Com...
PowerShell Enable-MsolDevice[-Force]-ObjectId<Guid> [-WhatIf] [-Confirm] [<CommonParameters>] 说明 Enable-MsolDevicecmdlet 在 Azure Active Directory 中启用设备对象。 示例 示例1:使用设备 ID 和确认启用设备 PowerShell PS C:\>Enable-MsolDevice-DeviceId"1aa200c4-bdfb-42b5-9a1e-5f1bafbe42...
PowerShell 複製 Get-MsolServicePrincipalCredential -ReturnKeyValues <Boolean> -ServicePrincipalName <String> [-TenantId <Guid>] [<CommonParameters>] Description Get-MsolServicePrincipalCredential Cmdlet 會取得與服務主體相關聯的認證。 範例 範例1:取得認證屬性 PowerShell 複製 PS C:\> Get-MsolServi...
PowerShell Convert-MsolFederatedUser-UserPrincipalName<String> [-NewPassword <String>] [-TenantId <Guid>] [<CommonParameters>] Description Convert-MsolFederatedUserCmdlet 會在最近從單一登錄轉換成標準驗證類型的網域中更新使用者。 單一登錄也稱為身分識別同盟。 必須為使用者提供新的密碼。