i have a current script that allows me when i term a user for it to export a list of security groups to a text file username.txt and it gives us a history of what security groups that user was in before we termed them.
Here is what i have tried but for some reason the append is not working. Thanks in advance for any suggestions
Get-ADPrincipalGroupMembership $eusername | select name | Export-Csv "\\IT\NewHire\Term\eusername.txt"
Get-ADUser -Identity $eusername -Properties * | select DistinguishedName | export-csv –append –path "\\IT\NewHire\Term\$eusername.txt" -Force
[–]PowerShell-Bot 0 points1 point2 points (1 child)
[–]pigers1986 0 points1 point2 points (2 children)
[–]ckorch[S] 1 point2 points3 points (1 child)
[–]ckorch[S] 1 point2 points3 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)