User Object Binding Syntax

   

User Object Binding Syntax

When binding a user object, you can specify the User class at the end of the binding string to designate the class of the object to be manipulated. Specifying the class of the object eliminates any ambiguity surrounding the type of object to bind and increases overall performance of the binding operation.

User Object Binding Syntax Using Visual Basic

Use the following Visual Basic code to bind to an existing user account in the domain:

 Dim User as IADsUser Dim UserName as String Dim UserDomain as String UserDomain = "  Target_User_Domain  " UserName = "  Target_User_Name  " Set User = GetObject("WinNT://" & UserDomain & "/" & UserName & ",user") 

   
Top


Windows NT. 2000 ADSI Scripting for System Administration
Windows NT/2000 ADSI Scripting for System Administration
ISBN: 1578702194
EAN: 2147483647
Year: 2000
Pages: 194
Authors: Thomas Eck

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net