I found a useful method to use WMI to logoff remotely a user session (on a workstation for example). It has been tested successfully on a Windows 7 computer. This WMI method can be found with the following command: gwmi
Configure OCSP Stappling
Online SSL configuration checker
WMIC command on Ubuntu 16.04 LTS
Replace string in file with sed
List DNS conditional forwarders Active Directory forest wide
How to count the mailboxes on each Exchange store
This script counts 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
Get statistics on Microsoft Exchange databases
Get the cluster quorum type
Get operating system information using WMI
Fill a host file (hosts.txt) with the hostnames you want to retrieve the operating system information Script : $Catalog = GC “C:\hosts.Txt” ForEach($Machine in $Catalog){ $QueryString = Gwmi Win32_OperatingSystem -Comp $Machine $QueryString = $QueryString.Caption Write-Host $Machine “:” $QueryString } Reference