Purpose : The purpose of this script is to send a daily report with the following informations : – hostname – software registry hive size This script has been written to get a status of our SQL server with the
Monitor locked out user accounts
Monitor if a process is frozen
Monitor certificate expiration
Monitor Active Directory database backup + report sent by email
Kill all instances of the same process name
This script kill all instances of the process “Robocopy” Script : (get-process |where {$_.processname -eq “Robocopy”}) | stop-process Reference : Using the Stop-Process Cmdlet Terminating a Process Syntax Stop-Process -name string[] [-passThru] [-Force] [-confirm] [-whatIf] [CommonParameters] Stop-Process [-id] Int32[] [-passThru]