ravenfrost
New member
- Joined
- Aug 20, 2007
- Messages
- 3
- Programming Experience
- Beginner
Hello,
Can someone please help me convert eh following script to vb.net. The whole Array portion is screwing me up and I can't figure out a way to convert it or another way to get canonicalname in vb.net. Thanks.
Can someone please help me convert eh following script to vb.net. The whole Array portion is screwing me up and I can't figure out a way to convert it or another way to get canonicalname in vb.net. Thanks.
VB.NET:
Dim objADSI, strOU, objUser
Set objADSI = CreateObject("ADSystemInfo")
strOU = objADSI.UserName
Set objUser = GetObject("LDAP://" & strOU)
objUser.GetInfoEx Array("canonicalName"), 0
WScript.Echo objUser.Get("canonicalName")
Last edited by a moderator: