AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 examples for MFA device resynchronization

Security assessment

Documents MFA maintenance procedures critical for access security, but no indication of resolving a specific MFA-related vulnerability.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_ResyncMfaDevice_section.md b/code-library/latest/ug/iam_example_iam_ResyncMfaDevice_section.md
index 48edc9182..4d3164a5e 100644
--- a//code-library/latest/ug/iam_example_iam_ResyncMfaDevice_section.md
+++ b//code-library/latest/ug/iam_example_iam_ResyncMfaDevice_section.md
@@ -60,0 +61,20 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example synchronizes the MFA device that is associated with the IAM user`Bob` and whose ARN is `arn:aws:iam::123456789012:mfa/bob` with an authenticator program that provided the two authentication codes.**
+    
+    
+    Sync-IAMMFADevice -SerialNumber arn:aws:iam::123456789012:mfa/theresa -AuthenticationCode1 123456 -AuthenticationCode2 987654 -UserName Bob
+    
+
+**Example 2: This example synchronizes the IAM MFA device that is associated with the IAM user`Theresa` with a physical device that has the serial number `ABCD12345678` and that provided the two authentication codes.**
+    
+    
+    Sync-IAMMFADevice -SerialNumber ABCD12345678 -AuthenticationCode1 123456 -AuthenticationCode2 987654 -UserName Theresa
+    
+
+  * For API details, see [ResyncMfaDevice](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+