Scripts: Powershell

« All scripts

Text

Managing AD Groups with PowerShell

As a Windows system administrator, managing Active Directory (AD) groups is probably something you do every day. While you could use the Active Directory Users and Computers (ADUC) MMC snap-in, what happens when you need to manage groups across multiple domains or automate group management tasks? That’s where PowerShell comes in handy.

Read »
Powershell71 lines

Add a User to Multiple AD Groups at Once

This script takes a list of email addresses and adds those users to a defined set of AD groups, skipping anyone already a member. You’d run this when onboarding someone who needs access to several groups at once and you don’t want to click through ADUC five times.

Read »
Powershell23 lines

Generate Random Passphrase Passwords with PowerShell

This script builds a random passphrase by pulling words, numbers, and special characters from CSV wordlists and concatenating them until the result hits a minimum length of 15 characters. It’s useful when you need a human-readable but policy-compliant password without reaching for a third-party tool.

Read »