Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Add alert

$
0
0

I have the below script which run on powershell to update the user attribute .
get-qaduser -sizelimit 999999 | foreach {
     $upn = $_.userprincipalname
$username = $samAccountName
$emaildomain = "@domainname.com"
$fullemail = "$username$emaildomain"
set-qaduser $upn -email $fullemail
}


Can advise if I would like to send the alert to my email a/c to display what user attribute have been updated ( if possible , is it also ok to keep it in the log )  , what can i do ? thanks


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>