Question: Provide a powershell script that will ask for the user's name in Active Directory and will remove a group that is in their AD. An
Provide a powershell script that will ask for the user's name in Active Directory and will remove a group that is in their AD. An example would be "Please enter your username" (you then enter a username from a user in AD and it would remove a group they were assigned to like Test_Contractors AD Group)
Step by Step Solution
3.37 Rating (153 Votes )
There are 3 Steps involved in it
Prompt user for their username Username ReadHost Please enter your username Search for the user in Active Directory User GetADUser Filter SamAccountNa... View full answer
Get step-by-step solutions from verified subject matter experts
