Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
people = wntMemberList(“”,”Administrators”,@localgroup)Details:
Any ideas as to what may be the problem?
Also, the part about "a 'weird' account listed under the local administrators group", that happens when a user or group account has been deleted. For example, create a local user and add the user to the "administrators" group on the workstation. Then delete the user account and go back and review the group memberships. Since the user account has been deleted, the account name cannot be obtained so the SID for the deleted account is displayed instead. All group memberships are simply stored as lists of SID values, not account names, so deleting an account results in not being able to resolve the SID to an account.
Within the NT extender, listing group memberships by account names is supposed to ignore unresolvable SID values and simply suppress any error messages about the problem. However, if you list the accounts by SID, then you can select flag bits that will show the SIDs of all accounts or just the SIDs that cannot be resolved to account names [these are "orphaned" SIDs].
Re-test the script and let me know what happens.
Article ID: W16529
File Created: 2005:02:18:12:21:16
Last Updated: 2005:02:18:12:21:16