Experts Exchange connects you with the people and services you need so you can get back to work.
ECHO y| SECEDIT.EXE /CONFIGURE /CFG myprog.inf /DB dummy.sdb /OVERWRITE /LOG myprog.log /QUIET
Open in new window
Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.
ECHO Creating inf file
ECHO [System Access]
ECHO MinimumPasswordAge = 1
ECHO MaximumPasswordAge = 42
ECHO MinimumPasswordLength = 7
ECHO PasswordComplexity = 1
ECHO PasswordHistorySize = 24
ECHO LockoutBadCount = 0
echo Reseting Local Security Policy from template
SECEDIT.EXE /CONFIGURE /CFG c:\localSecurityPolicyReset.inf /DB dummy.sdb /OVERWRITE /QUIET
ECHO Delete inf File
ECHO Delete this bat file
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.