Archive for the Category: VB

Visual Basic 線上教學網站

Visual Basic 線上教學網站收集: 如意網站VB 教學網Visual Basic 教學網 http://yes.nctu.edu.tw/VB 高應大資工系Visual Basic教學網站 http://www.csie.kuas.edu.tw/vb VB範例網 http://www.vbex.net VB教學 http://elearning.stut.edu.tw/electric/EE/TEACH/VB2/VB2INDEX.HTM VB研究小站 http://vb.ncis.com.tw Continue reading

Tagged , , Leave a comment

VBScript語法:移動AD使用者帳號至另一個組織單位

On Error Resume Next Const ADS_SCOPE_SUBTREE = 2 Set objOU = GetObject(“LDAP://OU=test,DC=test,DC=com”) Set objConnection = CreateObject(“ADODB.Connection”) objConnection.Provider = “ADsDSOObject” objConnection.Open “Active Directory Provider” Set objCommand =   CreateObject(“ADODB.Command”) Set objCommand.ActiveConnection = objConnection objCommand.Properties(“Page Size”) = 1000 objCommand.Properties(“Searchscope”) = ADS_SCOPE_SUBTREE objCommand.CommandText = “SELECT ADsPath FROM ‘LDAP://dc=test,dc=com’ WHERE NAME=’jojo’” Set objRecordSet = objCommand.Execute objRecordSet.MoveFirst Do Until objRecordSet.EOF     […]

Leave a comment
在线客服系统