本帖最后由 xyhqqaa 于 2012-6-20 11:02 编辑
好吧,我承认我是坑。旧问题还没解决。新问题来了。。。最近遇到的关于域账号的。。。搜索论坛的AD的udf发现。。。蛋碎不会用。。由于服务器上设置权限,需要使用当前域用户权限才能访问。。。但是我无法在用户免输入密码的情况下使用他账号去运行程序。。。。。所以现在想如果获取AD上面的密码,或者有木有其他办法获取账号信息。。??看了一边,木有看到密码信息之类的。。。囧。。而且例子代码出错运行:(3.3.9.0):E:\3.3.9.0\autoit3.exe "C:\Documents and Settings\dnyj05\Local Settings\Temp\_ad_getpasswordinfo.au3"
"C:\Documents and Settings\dnyj05\Local Settings\Temp\_ad_getpasswordinfo.au3" (18) : ==> ??????????.:
For $iCount = 1 To $aTemp[0]
For $iCount = 1 To $aTemp^ ERROR
->17:25:56 AutoIT3.exe 完成:[CODE]:1
+>17:25:57 ACNWrapper 完成..
>退出代码: 1 运行时间: 11.918 秒
#AutoIt3Wrapper_AU3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#AutoIt3Wrapper_AU3Check_Stop_OnWarning=Y
; *****************************************************************************
; Example 1
; Get the domain password policy and the password info for the current user
; *****************************************************************************
#include <AD.au3>
; Open Connection to the Active Directory
_AD_Open()
; Get the password info
Global $aAD_PwdInfo[12][2] = [[11],["Maximum Password Age (days)"],["Minimum Password Age (days)"],["Enforce Password History (# of passwords remembered)"], _
["Minimum Password Length"],["Account Lockout Duration (minutes)"],["Account Lockout Threshold (invalid logon attempts)"],["Reset account lockout counter after (minutes)"], _
["Password last changed (YYYY/MM/DD HH:MM:SS local time)"],["Password expires (YYYY/MM/DD HH:MM:SS local time)"],["Password last changed (YYYY/MM/DD HH:MM:SS UTC)"],["Password expires (YYYY/MM/DD HH:MM:SS UTC)"]]
Global $aTemp = _AD_GetPasswordInfo()
For $iCount = 1 To $aTemp[0]
$aAD_PwdInfo[$iCount][1] = $aTemp[$iCount]
Next
$aAD_PwdInfo[0][0] = $aTemp[0]
_ArrayDisplay($aAD_PwdInfo, "Active Directory Functions", -1, 0, "<")
; Close Connection to the Active Directory
_AD_Close()
|