如果用AUTOIT 可以不理CPAU CPAU
AUTOIT曾經寫過一個劇本COMPIE成EXE (COMPLIE了看不到密碼) 就好了
但你就要肯定每台電腦程式的路徑都相同 給你參考 曾經寫過類似的東東:
EnableNIC()
Func EnableNIC()
; Change the username and password to the appropriate values for your system.
Local $sUserName = "yourusername"
Local $sPassword = "yourpassword"
; Enable NIC call 區域連線
RunAs($sUserName, @ComputerName, $sPassword, 0, "netsh interface set interface 區域連線 enable", "", @SW_SHOWMAXIMIZED)
EndFunc ;==>EnableNIC
AUT2EXE HERE: https://www.autoitscript.com/site/autoit/downloads/