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
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,427 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,552 questions
{count} votes

Your answer

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