This script will be useful if you want to monitor if a process is frozen or not. The process manage files in a specific location (read, write and delete). The purpose is : check the number of files in the
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]
Group policy – Server access restriction
Get user group membership
Get the VMware tools status and version for all guests
Get the virtual desktop uptime
Get the size of the Exchange databases
Get the number of mailboxes on each Exchange store
This script get the number of mailboxes on each Exchange store Script : Get-MailboxDatabase | Select-Object Name,@{Name=”Number of users”;Expression={(Get-Mailbox -Database $_.name).Count}}|Out-GridView Reference Get-MailboxDatabase This cmdlet is available only in on-premises Exchange Server 2013. Use the Get-MailboxDatabase cmdlet to retrieve one