PDA

View Full Version : Local Security Policy در رجیستری



sg.programmer
سه شنبه 25 شهریور 1393, 21:13 عصر
سلام
- چطوری میتونم این قسمت از سیستم را با کد نویسی تغییر بدم
- یا کسی از دوستان میدونه در کجای ریجستری مقادیرش ذخیره میشن؟
- یا اسکریپتی برای تغییر آن وجود داره؟
- فوری
- تشکر
Control Panel\All Control Panel Items\Administrative Tools\Local Security Policy

دلفــي
چهارشنبه 02 مهر 1393, 20:38 عصر
The items you wnat to change are stored in the registry, but not in a place that you really want to be playing around "by hand"


Since these aren't domain-member computers, you'll want to change these items in the local security policy. You can get there quickly by running "SECPOL.MSC" from the "Start" button. Dig into "Account Policies" and "Password Policy" and you'll find the settings you're looking for


After you modify the settings either reboot or run "GPUPDATE" to cause the changed settings to take effect


If you have any number of machines to do this to you can use the "Export Settings..." functionality in the Security Policy editor to export the settings to an INF file. To apply that INF file on other servers, copy the INF file over to them and execute


SECEDIT /configure /db secedit.sdb /cfg