PowerShell to Remove Users from Cross Domain Groups

How would you remove over 1,000 users from 10 different AD groups?” Another engineer on my team asked me this, and my answer without a beat, PowerShell.

The work environment has many different domains and several forests. So this shouldn’t be a difficult process. So I started with the simple approach, of getting the Users.txt and Groups.txt imported as variables.… Continue reading

PowerCLI to Generate Nested VM Folder Structure

PowerCLI to Generate Nested VM Folder Structure

We are currently starting to plan for a disaster¬† recovery test, and the first part is configuring Site Recovery Manager (SRM).¬† We are still in the middle of the infrastructure replacement, so we are starting from scratch with everything.¬† So for SRM to work the best we need to have identical folder structures in both locations.… Continue reading