If you want to check an application installed on a computer or multiple server or client computers remotely, you can use Get-WmiObject remotely. In this scenario, I want to check any client computer that still installed “Microsoft Office Professional Plus 2010”. Here is the command for a single computer remotely: If you want to scan…
Category: WINDOWS
Enable Wake On LAN via GPO
Wake on LAN (WoL) is a networking standard protocol that provides the ability to wake up the computer devices. How the WOL works is by sending a package over the LAN (also referred to as a magic packet). When the Wake-On-Lan computer has already enabled on the computer devices, the Wake-on-LAN-enabled computer devices will wait…
Backup Veeam Database without SQL Management Studio
If you have a need to backup Veeam SQL database directly from the Veeam backup server, by default Veeam doesn’t include the SQL management studio on the installation part. You can install it, but if you don’t want to install it, you can take the backup via SQLCMD as the following. You can first check,…
Run RSOP in PowerShell to multiple computers
If you have the need to apply any changes on multiple computers via GPO, you may find there’s a single or some computers that were not applied the changes. To start the troubleshooting, you may need to know whether the problematic computers are already GPO-applied or not. From the GUI, you can check it from the…
Move Multiple Hyper-V Storage with Powershell script
If you have the need to move multiple VM disks on a stand-alone Hyper-V server or Hyper-V cluster server, this script may help you move them. If you perform manually VM disk migration for multiple VM, you will need to finish the one VM first before you can proceed to the next VM. Hence, this…
Email Tracking Log in Exchange Server
Get-MessageTrackingLog is a powershell comand we can use to track the email log on Exchange.If you have the needs to get the email log, these command may help you. Find emails log from a particular sender in the last hour: Find emails log and filter based on sender domain: Find all emails log from a…
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…
Get all VMs and its IP on Hyper-V
pwshell command Get-VM | select -ExpandProperty NetworkAdapters | select VMname, IPAddresses
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}
Get location of Hyper-V Virtual Machines and disk
In case you need to migrate all of VMs storage to another drive in Hyper-V server, you need to get the list of VMs and its virtual disk location. Here’s a one-liner to list the location of the VM files: