Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Finding unused security groups in AD

Reply
 
Old 2 Weeks Ago   #1 (permalink)
arabha123


 
 

Finding unused security groups in AD

Hi all,

I am in a fix where I want to delete a lot of security groups that
have been created but not used for share permissions but just so that
the distribution groups with the same name can be used in case of
share access. Is there a way to find out unused security groups, so
that they can be deleted. Any help is greatly appreciated.

My System SpecsSystem Spec
Old 2 Weeks Ago   #2 (permalink)
Al Dunbar


 
 

Re: Finding unused security groups in AD


"arabha123" <arabha123@newsgroup> wrote in message
news:45313c37-7882-400a-a386-a20ba5703ce9@newsgroup
Quote:

> Hi all,
>
> I am in a fix where I want to delete a lot of security groups that
> have been created but not used for share permissions but just so that
> the distribution groups with the same name can be used in case of
> share access. Is there a way to find out unused security groups, so
> that they can be deleted. Any help is greatly appreciated.
First thing is, if you delete a group containing no members, you can be
fairly confident that nobody will lose access to anything as a result.

Beyond that, this can be quite a difficult prospect, as the usage of a
security group is not contained within its definition in Active Directory.
Rather it is scattered in the form of permissions on NTFS volumes and
printers on all servers (and possibly some workstations), in various places
within exchange, and potentially in your applications.

If you know the permissions will be limited to NTFS volumes, and if you have
a structured approach to folder permissions, that may simplify the task. For
example, if you apply permissions only to folders and not to individual
files, or if you limit how deeply nested folders with different permissions
than their parents are allowed to go.

But at some point you are going to have to enumerate all of the permissions
on some subset of NTFS objects, marking any groups found as trustees as
being in use. If you have been thorough enough, the ones not so marked could
be considered unused and deleted.

Here's another random thought. You could rename all of the suspect groups by
prefixing their names with something like "UNUSEDSECURITYGROUP", use cacls
to dump all permissions, then do a search for the string
"UNUSEDSECURITYGROUP". Whenever you find a match, just rename the
corresponding group back to its original name.

/Al


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Finding members of RDP groups of a list of computers VB Script
Security Groups from VPN VB Script
Creating Global Security Groups VB Script
Finding Nested ID in Groups VB Script
finding updates and security dl's Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46