compwiz32 / PSADHealth

A toolkit of AD specific health checks that you can run in your environment to ensure your Active Directory is running optimally.
GNU General Public License v2.0
149 stars 19 forks source link

Test-ADObjectReplication #105

Open Rapidhands opened 3 years ago

Rapidhands commented 3 years ago

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