Hi
I am using below script to get HR samaccount from AD. Now I want to output should come with date name when the script run.
Also can send that current date output to my email address.
========================
Import-Module Activedirectory
Get-ADUser -Filter {(SamAccountName -like "*HR*") -and (enabled -eq"True") -and (pager -like "*")} -Properties * | select name,SamAccountName,pager | Export-Csv C:HR.csv -NoTypeInformation
================