Replace string in file with sed

Some useful scenarios to use sed to replace string in file found here Replacing all occurrences of one string with another in all files in the current directory: These are for cases where you know that the directory contains only…

Restrict a group’s rights to a specific command with sudo

Wikipedia sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user, by default the superuser. It originally stood for “superuser do” as the older versions of sudo were…

List DNS conditional forwarders Active Directory forest wide

With this simple script, you will be able to retrieve the DNS conditional forwarder settings in all the domain controllers in the forest. To get the list of the domain controllers in the Active Directory forest, the cmdlet get-adforest is…

Visualize global weather conditions

Great project to visualize global weather conditions using node.js You can access the demo of this project by clicking the image below: The project can be used and installed as shown below:

Launch the webserver:

Go to the…

How to count the mailboxes on each Exchange store

This script counts the number of mailboxes on each Exchange store Script :

Reference Get-MailboxDatabase This cmdlet is available only in on-premises Exchange Server 2013. Use the Get-MailboxDatabase cmdlet to retrieve one or more mailbox database objects from a…

Get statistics on Microsoft Exchange databases

This script gets the following Exchange database statistics : Server name Database name The last full backup The number of mailboxes The database size The average mailbox size The database whitespace Script :

Reference Get-MailboxStatistics This cmdlet is available…

Get the cluster quorum type

Microsoft Clusters can be managed using Powershell cmdlets. To get a specific information on the cluster like the quorum type, this cmdlet can help:

Reference Get-ClusterQuorum   Syntax

InputObject Cluster   Detailed Description The quorum configuration in a…

Understand what your web browser knows about you

Robin Linus has written a webpage called webkay that will open your eyes and make you understand what your (and every) web browser knows about you. This is a demonstration of all the data your browser knows about you. All…

Get operating system information using WMI

Fill a host file (hosts.txt) with the hostnames you want to retrieve the operating system information Script :

Reference Win32_OperatingSystem class The Win32_OperatingSystem WMI class represents a Windows-based operating system installed on a computer. Any operating system that can be…

Get HP iLO board informations using XML

The purpose of this script is to retrieve the following HP iLO board informations : HP Server model, iLO model, iLO firmware version. You only need a host file filled in with all your iLO IP addresses. The script has…