Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ Run one of the following commands:
- To set the passwords of all the users in an organization to never expire, run the following cmdlet:

```powershell
Get-MGuser -All | Update-MgUser -PasswordPolicies DisablePasswordExpiration
$userall = Get-MGuser -All
$userall | foreach {Update-MgUser -UserId $_.Id -PasswordPolicies DisablePasswordExpiration}
```

> [!WARNING]
Expand Down