aboutsummaryrefslogtreecommitdiffstats
path: root/AD-powershell-tools/bulk-reactivate.ps1
blob: e287aea2f201bd8d09905240bdaa1176b1e5fc2a (plain)
1
2
3
4
5
6
7
8
9
Import-Module ActiveDirectory

$csv = Get-Content $args[0]

ForEach ($user in $csv) {
    Enable-ADAccount -Identity $user

    Write-Host $user"'s account has been re-enabled"
}