AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for setting temporary passwords with forced reset

Security assessment

Documents credential management best practices but doesn't address a specific vulnerability

Diff

diff --git a/code-library/latest/ug/iam_example_iam_UpdateLoginProfile_section.md b/code-library/latest/ug/iam_example_iam_UpdateLoginProfile_section.md
index 4be357f5b..7c5f3aace 100644
--- a//code-library/latest/ug/iam_example_iam_UpdateLoginProfile_section.md
+++ b//code-library/latest/ug/iam_example_iam_UpdateLoginProfile_section.md
@@ -58,0 +59,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example sets a new temporary password for the IAM user`Bob`, and requires the user to change the password the next time the user signs in.**
+    
+    
+    Update-IAMLoginProfile -UserName Bob -Password "P@ssw0rd1234" -PasswordResetRequired $true
+    
+
+  * For API details, see [UpdateLoginProfile](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+