Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
dsAddtoGrp("WinNT://w-intra/7p4h001/Administrators,group", "LDAP://w-intra/CN=%UserName%,OU=Users,OU=MONROEVILLE,DC=w-intra,DC=net")
Here is an example that adds a domain user to the local machines local "user" group:
; Substitute appropriate values for "mymachine", "mydomainserver", and "hsismpson". gSecurityGroup = "WinNT://mymachine/users,group" ; User AD samAccountName property value to id user. sUserPath = "WinNT://mydomainserver/hsimpson,user" dsAddtogrp(gSecurityGroup, sUserPath)User hsimpson (cn=Homer Simpson in LDAP syntax) is now a member of a local machine's user group.
Article ID: W15803
File Created: 2004:03:30:15:40:56
Last Updated: 2004:03:30:15:40:56