Set-MsolUser cmdlet 修改用户对象。 此 cmdlet 仅用于更新基本属性。 使用 Set-MsolUserLicense、Set-MsolUserPassword 和 Set-MsolUserPrincipalName cmdlet 更新用户的许可证、密码和用户主体名称。
Module: MSOnline Updates the license assignment for a user. Note The Set-MsolUserLicense cmdlet is deprecated. Learn how to assign licenses with Microsoft Graph PowerShell. For more info, see the Assign License Microsoft Graph API. Syntax PowerShell Copy Set-MsolUserLicense -ObjectId <Guid...
The cmdlets were previously known as the Microsoft Online Services Module for Windows PowerShell cmdlets.The Set-MsolUser cmdlet is used to update a user object. This cmdlet should be used for basic properties only. The licenses, password, and User Principal Name for a user can be updated th...
Set-MsolUserPrincipalName cmdlet 更改用户的用户主体名称或用户 ID。 此 cmdlet 可用于在联合域和标准域之间移动用户,这会导致其身份验证类型更改为目标域。
## set-executionpolicy -executionpolicy bypass -scope currentuser -force Clear-Host write-host -foregroundcolor $systemmessagecolor "Script started`n" #install-module msonline Import-Module -Name "C:\Temp\MsOnline" -Verbose write-host -foregroundcolor green "MSOnline module loaded" ...
Examples Additional Resources See Also Updated: July 30, 2015 Applies To: Azure, Office 365, Windows Intune Note The cmdlets were previously known as the Microsoft Online Services Module for Windows PowerShell cmdlets. The Set-MsolUser cmdlet is used to update a user object. This cmdlet should...
The cmdlets were previously known as the Microsoft Online Services Module for Windows PowerShell cmdlets. The Set-MsolUser cmdlet is used to update a user object. This cmdlet should be used for basic properties only. The licenses, password, and User Principal Name for a user can be updated ...
If you think this is complicated, wait to see how licensing is done in the AzureAD PowerShell module (the replacement for the MSOL cmdlets). Tuesday, April 25, 2017 7:33 AM Hi , Try this way out. Find the Provisioned service plans for the user using the below PS cmdlet ...
Set-MsolUser [-ImmutableId <String>] [-ObjectId <Guid>] [-UserPrincipalName <String>] [-BlockCredential <Boolean>] [-City <String>] [-Country <String>] [-Department <String>] [-DisplayName <String>] [-Fax <String>] [-FirstName <String>] [-LastName <String>] [-LastPasswordChange...
Module: MSOnline Modifies a user in Azure Active Directory. Syntax PowerShell Set-MsolUser[-ImmutableId <String>] [-ObjectId <Guid>] [-UserPrincipalName <String>] [-BlockCredential <Boolean>] [-City <String>] [-Country <String>] [-Department <String>] [-DisplayName <String>] [-Fax ...