|
本帖最后由 jasonny 于 2017-4-6 21:49 编辑
各位高手:
請問一下如何在autit寫程式讓電腦開機自動登入,目前想到的有用regedit去控制
不過發現都無法新增,可否各位高手幫忙看看哪裡有錯誤嗎?已有新增#requireadmin語法
或是有其他方法可以分享的,感謝~
Regwrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","AutoAdminLogon","REG_SZ","1")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultUserName","REG_SZ","帳號")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultDomainName","REG_SZ","網域")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultPassword","REG_SZ","密碼") |
|