Get VM list on Hyper-V Cluster

A command to get the VM list detail that includes VM Name, CPU Count, IP Addresses, VLAN ID, and Memory assigned. The command includes the command below: Get-VM: This command gets the virtual machines from one or more Hyper-V hosts Get-ClusterNode: This command to gets information about one or more nodes, or servers, in a…

Replicate AD in Powershell

Here is the example command to replicate all AD in powershell command: function Replicate-AllDomainController {(Get-ADDomainController -Filter *).Name | Foreach-Object {repadmin /syncall $_ (Get-ADDomain).DistinguishedName /e /A | Out-Null}; Start-Sleep 10; Get-ADReplicationPartnerMetadata -Target “$env:userdnsdomain” -Scope Domain | Select-Object Server, LastReplicationSuccess}

Exchange Message Tracking

As Exchange administrator, you may need to search track email on exchange. Here is some examples PW command we can use to track the any message. This command I tested on Exchange 2016 environment, but it might work in other version of exchange. Below some examples command of Get-MessageTrackingLog. Find emails log from a particular…

How to secure Nginx with Let’s Encrypt on Ubuntu 18.04

Let’s Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. It simplifies the process by providing a software client, Certbot, that attempts to automate most (if not all) of the required steps. Currently, the entire process of obtaining and installing…

How to monitor and send Hyper-V Checkpoint alert in powershell

Introduction Hyper-V is one of virtualization software which has an ability to create a VM checkpoint. We can use this feature to roll back the virtual machine to a previous state. It usually used to take a backup temporarily when we’re doing VM configuration changes, or windows updates. Instead of using a full backup, it…

Install WordPress with LEMP stack Ubuntu 18.04

Introduction WordPress is a free and open-source content management system (CMS) based on PHP & MySQL designed for everyone, emphasizing accessibility, performance, security, and ease of use. It have many features including a plugin architecture and a template system. Used by more than 60 million websites, including 33.6% of the top 10 million websites as…

Hyper-V Automatic Virtual Machine Activation in Windows Server 2016

Windows Server 2012 R2 introduced a feature called “Automatic Virtual Machine Activation” (AVMA). Based on the number of questions that I’ve seen and fielded about it, I’d say that it’s been quite popular. Windows Server 2016 has carried this feature forward. What is Automatic Virtual Machine Activation? AVMA is engineered to digitally facilitate the guest…