I know I'm a relative newbie, but this just cost me two hours of troubleshooting an application sync issue that didn't exist. Can somebody please tell me why this is returning a count that's one higher than the actual number of users in the group? I found my problem with a 40-something line VBS script, but this PowerShell command should have been able to do it in one line; or so I thought.
(dsget group "CN=GroupName" -members").count
Thanks for your help.