Rename Files in PowerShell
Find and Replace parts of a File Name The following script will find and replace part of a file name with another string.
Find and Replace parts of a File Name The following script will find and replace part of a file name with another string.
The following script filters out filenames in powershell. The filenames all have a known pattern of ServerName-DatabaseName-FilterName.sql
The following PowerShell script removes all users from an Active Directory group
The following script returns users that exist in 2 Active Directory groups
The following script compares the members of two active directory groups
The following script
The following script copies users from one Active directory group into another active directory group. If the user is already in the new group, then no action is taken. Moves…
The following PowerShell function calls one function and process the results in another function
# Import Active Directory Module if it's not already loaded if (-not (Get-Module -Name ActiveDirectory)) { Import-Module ActiveDirectory } # Define how recent is "recently" (e.g., past 7 days) $daysAgo…