找回密码
 加入
搜索
查看: 2267|回复: 4

[AU3基础] 获取域账号信息,暂时不考虑。不问了(已解决)

[复制链接]
发表于 2012-6-18 17:30:07 | 显示全部楼层 |阅读模式
本帖最后由 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()
 楼主| 发表于 2012-6-18 17:46:35 | 显示全部楼层
懒得想了、、、求版主帮我移动到无意义区吧。。。
发表于 2012-6-18 19:42:31 | 显示全部楼层
你都放弃了,我也就不帮你测试了

评分

参与人数 1金钱 +10 贡献 +4 收起 理由
xyhqqaa + 10 + 4

查看全部评分

 楼主| 发表于 2012-6-18 20:42:46 | 显示全部楼层
回复 3# 502762378


    大哥。。如果您有空帮忙测试下。。。。俺找不出问题、、、迷茫。。。
发表于 2013-3-11 18:11:34 | 显示全部楼层
這樣高深的問題。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-29 09:36 , Processed in 0.079838 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表