Skip to content

Instantly share code, notes, and snippets.

@codewisdom
Created April 10, 2010 00:48
Show Gist options
  • Save codewisdom/361733 to your computer and use it in GitHub Desktop.
Save codewisdom/361733 to your computer and use it in GitHub Desktop.
Dim a
a = InputBox("Enter your name here")
Msgbox(a)
Const ADS_PROPERTY_APPEND = 3
Set objUser = GetObject("LDAP://cn=BPService,cn=Users,dc=k2demo,dc=local")
objUser.PutEx ADS_PROPERTY_APPEND, _
"ServicePrincipalName", Array("K2HostServer/K2Demo","K2Server/K2Demo")
objUser.SetInfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment