• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

Remove all users from a group...

HI,

I NEED A SCRIPT WHICH CAN REMOVE ALL USERS FROM THE GROUP...
Is there a way to remove it from the root domain/.

Regards
Sharath
0
bsharath
Asked:
bsharath
  • 2
2 Solutions
 
orizivCommented:
I've found a power-shell script you can use:
http://janssenjones.typepad.com/janssenjonescom/2007/01/powershell_and_.html
Try Modify-Group-Membership.ps1 -remove -user * -group yourgroup
0
 
LauraEHunterMVPCommented:
0
 
bsharathAuthor Commented:
LauraEhunter...
will this delete or remove all users from the Group?
0
 
LauraEHunterMVPCommented:
It will remove all users from the group in question, as you requested in your initial post.  Deleting users is another matter entirely, if this is what you were asking for please specify.
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now