'On Error Resume NextSet objSysInfo = CreateObject("ADSystemInfo")
Set objNetwork = CreateObject("Wscript.Network")strUserPath = "LDAP://"&objSysInfo.UserName 
msgbox(struserpath)
Set objUser = GetObject(strUserPath)
For Each strGroup in objUser.memberOf
    strGroupPath = "LDAP://" & strGroup
    Set objGroup = GetObject(strGroupPath)
    strGroupName = objGroup.CN
msgbox(strGroupName)  //is null.
    Select Case strGroupName
    Case "testuser"
         objNetwork.MapNetworkDrive "t:", "\\testaccu7\users\"&objNetwork.UserName
End Select
Next
For Each strGroup in objUser.memberOf总报错,帮我看看什么错,谢谢!