List Group Membership with recursion

I just found out that a non-admin can access the C$, D$ etc. shares just by going to Start | Run and entering \\servername\C$, etc...it doesn't even give a challenge for username/password. I can't figure out what's up. I checked the AD user who was able to do this, and he is not a member of admins. The root of the drive does have "Special" rights for the Everyone group under security...

Is there a way for me to list all users that are in the local administrators group on a computer?  I need to recurse through all nested groups memberships.

Thanks,
byronleonardAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jay_Jay70Commented:
Hi byronleonard,

access enum from sysinternals may help you narrow down on permissions on folders
http://www.sysinternals.com/Utilities/AccessEnum.html

have you looked under the local administrators group in computer management?

Cheers!
Jay_Jay70Commented:
TheCleanerCommented:
This script from the MS technet magazine will get a user's group membership through a nested scenario.

If you read the article you might be able to modify the script for listing the admins in recursion.  I'm not a great scripter so this is about as much help as I can bring.

http://www.microsoft.com/technet/technetmag/issues/2006/03/ScriptingGuy/default.aspx

On Error Resume Next

SetobjUser=GetObject("LDAP://CN=Ken Myer," & _
    "OU=Finance,DC=fabrikam,DC=com")
Set colGroups = objUser.Groups
For Each objGroup in colGroups
    Wscript.Echo objGroup.CN
    GetNested(objGroup)
Next
Function GetNested(objGroup)
    On Error Resume Next
    colMembers = objGroup.GetEx("memberOf")
    For Each strMember in colMembers
        strPath = "LDAP://" & strMember
        Set objNestedGroup = _
        GetObject(strPath)
        WScript.Echo objNestedGroup.CN
        GetNested(objNestedGroup)
    Next
End Function

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TheCleanerCommented:
Thank you for the points!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.