Office365 User Identity Management: Difference between revisions

From DFWLPiki
Jump to navigation Jump to search
(Created page with "Category:Windows ==Setting a User to have NonExpiring Password== [nowiki] Connect-MSOLService Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires Get-MSOLUser -...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Windows]]
[[Category:Azure]]
==Setting a User to have NonExpiring Password==
==Setting a User to have NonExpiring Password==
  [nowiki]
  <nowiki>
Connect-MSOLService
Connect-MSOLService
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires
Get-MSOLUser -UserPrincipalName alias | Select PasswordNeverExpires
Get-MSOLUser -UserPrincipalName alias | Select PasswordNeverExpires
Set-MsolUser -UserPrincipalName alias -PasswordNeverExpires $true
Set-MSOLUser -UserPrincipalName alias -PasswordNeverExpires $true
</nowiki>

Latest revision as of 17:37, 6 January 2022

Setting a User to have NonExpiring Password

Connect-MSOLService
Get-MSOLUser | Select UserPrincipalName, PasswordNeverExpires
Get-MSOLUser -UserPrincipalName alias | Select PasswordNeverExpires
Set-MSOLUser -UserPrincipalName alias -PasswordNeverExpires $true