PSADHealth
PSADHealth copied to clipboard
Test-ADObjectReplication
Hi Mike Perhaps a potential issue : New-ADComputer ... no error check. If user haven't rights to create computer object in AD, this failed. Try ... catch statement should be implemented.
Idem for the Remove-ADComputer : try.... catch statement.
As some other functions, this one should have only task to perform. Send-Mail could be an option (passed by param section) or outside the function.
Regards Olivier