Remove all group members Get-ADGroupMember "TESTGROUP" | ForEach-Object {Remove-ADGroupMember "TESTGROUP" $_ -Confirm:$false}
Add similar groups to one group get-adgroup -filter {name -like "group*end"} | ForEach-Object {Add-ADGroupMember -Identity "TESTGROUP" -Members $_}
Disable computer account based on name Get-ADComputer COMPUTERNAME | Disable-ADAccount
Link GPO to OU New-GPLink -Name GPO_NAME -Target "OU=TESTOU,DC=ad,DC=company,DC=com" -Enforced yes
Force GPUpdate on Machines in OU Get-ADComputer -Filter * -SearchBase "OU=TESTOU,DC=ad,DC=company,DC=com" | foreach{ Invoke-GPUpdate -Computer $_.name -force}
Get all snapshots and format list Get-VM | Get-Snapshot | Format-List name,vm,created
Remove all snapshots Get-VM | Get-Snapshot | Remove-Snapshot
Remove all snapshots from one VM Get-VM VMNAME | Get-Snapshot | Remove-Snapshot