Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Win7 modifies password policy and sets double password

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Control Panel\ all Control Panel items\ Administrative tools\ Local Security Policy

First, Win+R opens the cmd window and enters gpedit.msc.

Second, change the password policy (open "computer configuration"-> "Security Settings"-> "account Policy"-> "password Policy")

The third step is to change the complexity and duration of the password.

Step 4: set the number of password locks

Step 5, set the password under (win + R) or cmd [net user administrator Hell0roomjie]

Step 6, as the boot password is easy to be cracked, set a double password this time

Step 7: cancel the password set by syskey

Set the CMD password under Windows

@ echo off

Echo.

Echo is creating a lockcmd.cmd batch file to lock the command line window. Please wait.

Echo.

Echo. > lockcmd.cmd

Echo @ echo off > lockcmd.cmd

Echo echo. > > lockcmd.cmd

Echo setlocal > > lockcmd.cmd

Echo set / a times=3 > > lockcmd.cmd

Echo: checkpassword > > lockcmd.cmd

Echo set / p password= Please enter password: > > lockcmd.cmd

Echo set / a times=times-1 > > lockcmd.bat

Echo if "% password%%" = = "123" goto continue > > lockcmd.cmd

Echo if "% times%%" = = "0" goto exit > > lockcmd.cmd

The password entered by echo echo is incorrect, please re-enter it, and there are% times%% chances! > > lockcmd.cmd

Echo goto checkpassword > > lockcmd.cmd

Echo: exit > > lockcmd.cmd

Echo echo. > > lockcmd.cmd

Echo echo, you have no right to enter the command line! > > lockcmd.cmd

Echo exit > > lockcmd.cmd

Echo: continue > > lockcmd.cmd

Echo cls > > lockcmd.cmd

Echo echo, welcome back to the command line window! > > lockcmd.cmd

Echo endlocal > > lockcmd.cmd

Copy lockcmd.cmd windir%

Echo is setting up the registry to open the command line and enter the locked state.

Echo Windows Registry Editor Version 5.00 > temp.reg

Echo [HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Command Processor] > > temp.reg

Echo "AutoRun" = "lockcmd.cmd" > > temp.reg

Echo has locked the command line, only input password can be used!

Regedit / s temp.reg

Del / Q / f temp.reg > nul

Del / Q / f lockcmd.cmd > nul

Pause

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report