Skip to content

Commit

Permalink
Merge pull request #10541 from MicrosoftDocs/main
Browse files Browse the repository at this point in the history
Publish main to live, 01/30/25, 3:30 PM PT
  • Loading branch information
Ruchika-mittal01 authored Jan 30, 2025
2 parents c0fc051 + e012ffd commit 68413f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Transition into a passwordless deployment
description: Learn about how to transition into a passwordless deployment, the third step of the Microsoft passwordless journey.
ms.topic: concept-article
ms.date: 10/29/2024
ms.date: 01/30/2025
---

# Transition into a passwordless deployment
Expand Down Expand Up @@ -123,7 +123,7 @@ function Generate-RandomPassword{
$NewPassword = ConvertTo-SecureString -String (Generate-RandomPassword) -AsPlainText -Force
Set-ADAccountPassword -identity $userId -NewPassword $NewPassword -Reset
Set-ADAccountPassword -identity $samAccountName -NewPassword $NewPassword -Reset
```

If your organizational policies allow it, you can configure the randomized passwords to never expire, or use a long expiration period. This configuration prevents the user from being prompted to change their password.
Expand Down

0 comments on commit 68413f2

Please sign in to comment.