一些命令
取消密码复杂度
-------------------------------
@echo off & cd /d %~dp0
::设置密码长度,0 不要求密码,最多 14
set Length=0
::启用或禁用复杂性要求,1 启用,0 禁用
set Complexity=0
(echo [Version]
echo signature="$CHICAGO$"
echo [System Access]
echo MinimumPasswordLength = %Length%
echo PasswordComplexity = %Complexity%)>Password.inf
secedit /configure /db Password.sdb /cfg Password.inf /log Password.log
del Password.*
--------------------------------------------
禁止休眠
powercfg -h off
----------------------------------
随机命名不重启
@ ECHO OFF
color 0A
ECHO —————————————————————————-
ECHO.
ECHO 版权所有 copyright of @@@@@@@@@
ECHO.
ECHO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ECHO.
:name
set cname=le%random%%random%
echo REGEDIT4 >c:\windows\reg.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName] >> c:\windows
\reg.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName] >> c:
\windows\reg.reg
echo "ComputerName"="%cname%" >> c:\windows\reg.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
>> c:\windows\reg.reg
echo "ComputerName"="%cname%" >> c:\windows\reg.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\ComputerName\ComputerName] >> c:
\windows\reg.reg
echo "ComputerName"="%cname%" >> c:\windows\reg.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] >> c:\windows
\reg.reg
echo "NV Hostname"="%cname%" >> c:\windows\reg.reg
echo "Hostname"="%cname%" >> c:\windows\reg.reg
echo [HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\ShellNoRoam] >> c:\windows\reg.reg
echo @="%cname%" >> c:\windows\reg.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName] >>
c:\windows\reg.reg
echo "ComputerName"="%cname%" >> c:\windows\reg.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Tcpip\Parameters] >> c:\windows
\reg.reg
echo "NV Hostname"="%cname%" >> c:\windows\reg.reg
echo "Hostname"="%cname%" >> c:\windows\reg.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] >> c:
\windows\reg.reg
echo "DefaultDomainName"="%cname%" >> c:\windows\reg.reg
echo "AltDefaultDomainName"="%cname%" >> c:\windows\reg.reg
regedit /s c:\windows\reg.reg
----------------------------------------------------------------------------
自动登陆
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d ""
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d "user"
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d "ccx.com"
--------------
重启服务 window
net stop WinEIM_Server_Defend_Process
net start WinEIM_Server_Defend_Process
--------------------------------
if exist C:\Users\Public\Desktop\EyeBeamBuls\eyeBeam.exe (ping -n 1) else (\\192.168.1.251\sharp\EyeBeamBuls.exe)
if exist C:\WinEIM\wineim.exe (exit) else (\\192.168.1.251\sharp\zxt.exe)
--------------------
设置代理
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "218.77.106.248:8899" /f
-- 取消
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "" /f
-- 设置特定地址不走代理
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v "ProxyOverride" /t REG_SZ /d "192.168.1.250;192.168.1.250" /f
----------- 命令修改计算机名字 实时生效
wmic useraccount where name='administrator' call Rename 'admin123'