Merge pull request #10540 from paolomatarazzo/pm-20250130-whfb-script

[Passwordless] script variable update
This commit is contained in:
Padma Jayaraman 2025-01-31 00:34:14 +05:30 committed by GitHub
commit e012ffda78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@
title: Transition into a passwordless deployment title: Transition into a passwordless deployment
description: Learn about how to transition into a passwordless deployment, the third step of the Microsoft passwordless journey. description: Learn about how to transition into a passwordless deployment, the third step of the Microsoft passwordless journey.
ms.topic: concept-article ms.topic: concept-article
ms.date: 10/29/2024 ms.date: 01/30/2025
--- ---
# Transition into a passwordless deployment # Transition into a passwordless deployment
@ -123,7 +123,7 @@ function Generate-RandomPassword{
$NewPassword = ConvertTo-SecureString -String (Generate-RandomPassword) -AsPlainText -Force $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. 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.