Skip to content

Commit

Permalink
Update MSFT_AccountPolicy.psm1
Browse files Browse the repository at this point in the history
Fixes 'Maximum_lifetime_for_service_ticket' can set to 0 (unlimited) as well
  • Loading branch information
hoppi1804 authored Dec 7, 2021
1 parent b948b99 commit ab21db4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ function Set-TargetResource
$Enforce_user_logon_restrictions,

[Parameter()]
[ValidateRange(10, 99999)]
# [ValidateRange(10, 99999)]
[ValidateScript({ return ($_ -eq 0 -or (10..99999) -contains $_); })]
[System.UInt32]
$Maximum_lifetime_for_service_ticket,

Expand Down

0 comments on commit ab21db4

Please sign in to comment.