Thursday, February 13, 2014

Status check of AD RID pool with email (Powershell)

Import-Module activedirectory
$RIDinfo=dcdiag /test:ridmanager /v | find "Available RID"

send-mailmessage -to demo@somewhere.com -from someone@somewhere.com -subject $RIDinfo -smtpserver 10.10.10.10