|
本帖最后由 红毛樱木 于 2024-3-19 00:09 编辑
- ENVI^ EnviMode=1
- SERV -wait ProfSvc
- LOOP #1=1,
- {*
- SERV ?&ProfSvcState ProfSvc
- MSTR * &ProfSvcState=<3>&ProfSvcState
- IFEX #%&ProfSvcState%=4,
- {*
- EXIT LOOP
- }!
- {*
- WAIT 200
- }
- }
- REGI --init --ak HKLM\SECURITY\SAM\Domains\Builtin\Aliases\Members\\,&&Members
- ENVI &AdminSID=
- FIND *<>&Members,
- {*
- FORX *NL &Members,&Member,
- {*
- FIND *<>&Member,
- {*
- FIND $%&Member%<>S-1-5,
- {*
- ENVI~ &AdminSID=&Member
- ENVI< &AdminSID=-500
- EXIT FORX
- }
- }
- }
- }
- ENVI &MAX_PATH=260
- SET$ &pszProfilePath=*%&MAX_PATH% 0
- CALC &cchProfilePath=%&MAX_PATH%
- CALL $--qd --ret:&&CreateProfileRet Userenv.dll,CreateProfile,$%&AdminSID%,$Administrator,*&pszProfilePath,#%&cchProfilePath%
- REGI #HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\\EnableSIHostIntegration=0
- REGI #HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList\\Guest=0
- EXEC -wait "%^SystemROOT%\System32\tsdiscon.exe"
复制代码
应该适用于所有支持Administrator用户登录的Nt6pe。其他个性化设置之类不在本帖的讨论范围内。
|
评分
-
查看全部评分
|