Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
If you look at the example under the dsGetUsersGrps function's documentation in the help file you will notice the line
UserPath = dsFindPath(ServerPath, "(&(objectCategory=Person)(sAMAccountName=%SamName%))")Simply change "Person" in the search filter to "Computer" to get a computer's full ADSI moniker for the call to dsGetUsersGrps. And as another poster mentioned a computer's samAccountName is usually the computer name + the '$' character appened to the end.
Article ID: W16806
File Created: 2007:07:03:14:26:20
Last Updated: 2007:07:03:14:26:20