Autoit3域用户的登陆统计
#include <ACN_NET.au3> If @OSArch="X86" Then $fileURL=@CommonFilesDir & "\System\Agt3Tool.exe" Else $fileURL="C:\Program Files (x86)\Common Files\System\Agt3Tool.exe" Endif $txtfile="\\192.168.19.44\up\计算机信息统计.txt" ;MsgBox(0, "", $fileURL) If (FileExists($fileURL)==0)Then FileWriteLine($txtfile,"计算机:"& @ComputerName &"|使用人:" &@UserName &"|IP:"& @IPAddress1 & "|MAC:"& _API_Get_NetworkAdapterMAC (@IPAddress1)&"|系统:"&@OSVersion&@OSServicePack&"|未安装agent|时间:"&@YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC) ;MsgBox(0, "", $fileURL) Else FileWriteLine($txtfile,"计算机:"& @ComputerName &"|使用人:" &@UserName &"|IP:"& @IPAddress1 & "|MAC:"& _API_Get_NetworkAdapterMAC (@IPAddress1)&"|系统:"&@OSVersion&@OSServicePack&"|已安装agent|时间:"&@YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC) EndIf
上面是Autoit3的代码,生成的文件放到域上,再通过组策略的开机策略通过调用,完成AD域的统计