dsccommunity / SecurityPolicyDsc

A wrapper around secedit.exe to configure local security policies
MIT License
177 stars 53 forks source link

AccountPolicy: Fix applying Account_lockout_duration to Zero #148

Closed X-Guardian closed 4 years ago

X-Guardian commented 4 years ago

Pull Request (PR) description

This PR fixes being able to set the Account_lockout_duration property of the AccountPolicy resource to zero.

The AccountPolicy unit tests have also been improved and updated to Pester v4 format.

This Pull Request (PR) fixes the following issues

Task list


This change is Reviewable

codecov[bot] commented 4 years ago

Codecov Report

Merging #148 into master will increase coverage by 0%. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #148   +/-   ##
=====================================
  Coverage      89%    89%           
=====================================
  Files           5      5           
  Lines         573    574    +1     
=====================================
+ Hits          514    516    +2     
+ Misses         59     58    -1