Skip to content

Commit 7423add

Browse files
authored
Merge pull request MicrosoftDocs#3748 from exchange12rocks/3704
Set-LapsADPasswordExpirationTime: Corrects a non-working example. Fixes MicrosoftDocs#3704
2 parents 5ebf871 + e1c3577 commit 7423add

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docset/winserver2019-ps/laps/Set-LapsADPasswordExpirationTime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This examples show setting the LAPS password expiration time to a specific date.
6666
### Example 3
6767

6868
```powershell
69-
Set-LapsADPasswordExpirationTime -Identity lapsClient -WhenEffective (DateTime::Now.AddDays(1))
69+
Set-LapsADPasswordExpirationTime -Identity lapsClient -WhenEffective ([DateTime]::Now.AddDays(1))
7070
```
7171

7272
```Output

docset/winserver2022-ps/laps/Set-LapsADPasswordExpirationTime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This examples show setting the LAPS password expiration time to a specific date.
6666
### Example 3
6767

6868
```powershell
69-
Set-LapsADPasswordExpirationTime -Identity lapsClient -WhenEffective (DateTime::Now.AddDays(1))
69+
Set-LapsADPasswordExpirationTime -Identity lapsClient -WhenEffective ([DateTime]::Now.AddDays(1))
7070
```
7171

7272
```Output

docset/winserver2025-ps/laps/Set-LapsADPasswordExpirationTime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This examples show setting the LAPS password expiration time to a specific date.
6666
### Example 3
6767

6868
```powershell
69-
Set-LapsADPasswordExpirationTime -Identity lapsClient -WhenEffective (DateTime::Now.AddDays(1))
69+
Set-LapsADPasswordExpirationTime -Identity lapsClient -WhenEffective ([DateTime]::Now.AddDays(1))
7070
```
7171

7272
```Output

0 commit comments

Comments
 (0)