1- $pwds = @ ([pscustomobject ] @ {
2- ComputerName = " test-pc"
3- Password = " MySmallTestPassword#"
4- PasswordUpdateTime = [datetime ]::Now
5- ExpirationTimestamp = [datetime ]::Now
6- })
7- $pwds += [pscustomobject ] @ {
8- ComputerName = " test-pc"
9- Password = " MyHistoryTestPasswordWithManyCharacters#"
10- PasswordUpdateTime = [datetime ]::Parse(" 22.04.2023 10:40:56" )
11- ExpirationTimestamp = $null
12- }
13- $pwds += [pscustomobject ] @ {
14- ComputerName = " test-pc"
15- Password = " MyHistoryTestPassword#"
16- PasswordUpdateTime = [datetime ]::Parse(" 23.03.2023 10:10:23" )
17- ExpirationTimestamp = $null
18- }
1+ $pwds = @ ([pscustomobject ] @ {
2+ ComputerName = " test-pc"
3+ Password = " MySmallTestPassword#"
4+ PasswordUpdateTime = [datetime ]::Now
5+ ExpirationTimestamp = [datetime ]::Now
6+ })
7+ $pwds += [pscustomobject ] @ {
8+ ComputerName = " test-pc"
9+ Password = " MyHistoryTestPasswordWithManyCharacters#"
10+ PasswordUpdateTime = [datetime ]::Parse(" 22.04.2026 10:40:56" )
11+ ExpirationTimestamp = $null
12+ }
13+ $pwds += [pscustomobject ] @ {
14+ ComputerName = " test-pc"
15+ Password = " MyHistoryTestPassword#"
16+ PasswordUpdateTime = [datetime ]::Parse(" 23.03.2025 10:10:23" )
17+ ExpirationTimestamp = $null
18+ }
19+ $pwds += @ ([pscustomobject ] @ {
20+ ComputerName = " test-pc"
21+ Password = $null
22+ PasswordUpdateTime = [datetime ]::Parse(" 23.03.2000 10:10:23" )
23+ ExpirationTimestamp = $null
24+ })
0 commit comments