本帖最后由 yinbinly 于 2011/10/8 17:10 编辑
本人给联想专卖店打工 ,很多联想电脑自带windows7家庭普通版 不是管理员账户 都知道JiHuo管理员账户在输命令
管理员身份运行 CMD 输入 net user administrator /active:yes
本人无聊 AU3写了个工具 ,源码成品
-
- #NoTrayIcon
- #RequireAdmin
- #include <ButtonConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- #Region ### START Koda GUI section ### Form=
- $Form1 = GUICreate("ly", 210, 138, -1, -1)
- $Group1 = GUICtrlCreateGroup("", 8, 8, 193, 121)
- $Button1 = GUICtrlCreateButton("JiHuo管理员账户", 16, 24, 177, 49)
- GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
- $Button2 = GUICtrlCreateButton("请手动注销后生效", 16, 80, 177, 41)
- GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
- GUICtrlCreateGroup("", -99, -99, 1, 1)
- GUISetState(@SW_SHOW)
- #EndRegion ### END Koda GUI section ###
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- Exit
- Case $Button1
- #include<Process.au3>
- _RunDOS("net user administrator /active:yes")
- Sleep(600)
- MsgBox(0, "提示!", "JiHuo成功,注销后生效!")
-
- EndSwitch
- WEnd
复制代码
成品
顺便写下关闭管理员账户 必须在其他账户中执行
- net user administrator /active:no
复制代码
windowsXP下截图
支持阿木电脑吧:i3681导航 |