AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/iam_example_iam_UpdateAccountPasswordPolicy_section.md

Summary

Added PowerShell V5 example for updating account password policy with security requirements

Security assessment

Documents security feature configuration (password complexity, rotation) but doesn't fix a specific vulnerability

Diff

diff --git a/code-library/latest/ug/iam_example_iam_UpdateAccountPasswordPolicy_section.md b/code-library/latest/ug/iam_example_iam_UpdateAccountPasswordPolicy_section.md
index 704c2f58e..241100703 100644
--- a//code-library/latest/ug/iam_example_iam_UpdateAccountPasswordPolicy_section.md
+++ b//code-library/latest/ug/iam_example_iam_UpdateAccountPasswordPolicy_section.md
@@ -54,0 +55,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example updates the password policy for the account with the specified settings. Note that any parameters that are not included in the command are not left unmodified. Instead, they are reset to default values.**
+    
+    
+    Update-IAMAccountPasswordPolicy -AllowUsersToChangePasswords $true -HardExpiry $false -MaxPasswordAge 90 -MinimumPasswordLength 8 -PasswordReusePrevention 20 -RequireLowercaseCharacters $true -RequireNumbers $true -RequireSymbols $true -RequireUppercaseCharacters $true
+    
+
+  * For API details, see [UpdateAccountPasswordPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+