本帖最后由 sairen139 于 2022-10-3 17:04 编辑
function onfirstrun()
exec('/hide', 'cmd.exe /c net start Lanmanserver')
exec('/hide', 'cmd.exe /c net share X=X: /grant:everyone,full /y')
exec('/hide', 'cmd.exe /c net start wlansvc')
exec('/hide', 'wpeutil InitializeNetWork')
exec('X:\\Program Files\\Yong\\W64\\YONG.EXE')
exec('/hide', [[Reg delete HKLM\SOFTWARE\Classes\Directory\background\shell\Powershell /f]])
reg_write([[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{26EE0668-A00A-44D7-9371-BEB064C98683}\ShellFolder]], 'Attributes', 0xA0900004, winapi.REG_DWORD)
reg_write([[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{59031a47-3f72-44a7-89c5-5595fe6b30ee}\ShellFolder]], 'Attributes', 0xA094012d, winapi.REG_DWORD)
exec('/hide','X:\\Program Files\\WinXShell.exe -ui -console -jcfg wxsUI\\UI_info\\ip.jcfg -ipinfo -top')
隐藏控制面板和SYSTEM用户的两行条目如上
|