Difference between revisions of "Office365 User Identity Management"

From DFWLPiki
Jump to: navigation, search
(Setting a User to have NonExpiring Password)
Line 1: Line 1:
 
[[Category:Windows]]
 
[[Category:Windows]]
 
==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]
+
</nowiki>

Revision as of 17:06, 11 November 2019

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