Share via

Setting PIN Complexity through a BAT script

Michał Korczyński 0 Reputation points
2024-10-18T07:16:01.4633333+00:00

Hello my company does not own an AD, so when we configure new workstations, we've got to set Group Policies manually, I've been working on a script to automate the task, but I am stuck with setting my pin complexity settings in my script.

reg add "HKLM\SOFTWARE\Policies\Microsoft\PassportForWork\PINComplexity" /v MinimumPINLength /t REG_DWORD /d 14 /f

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.