Category Archive: IT

Oct 31 2017

Little Helper: The Lab Automator

I grew up reading Mickey Mouse and Donald Duck comics and have always been fascinated by Gyro Gearloose’s Little Helper. And today I’m introducing to the world my very own version – well first version – of PowerShell’s Little Helper AKA The Lab Automator. Just as Mr. Gearloose depended on Little’s assistance to make his …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/10/little-helper-the-lab-automator/

Oct 09 2017

Weekend Project: Running Race Statistics

In this Weekend Project, I worked on a script to help fitness trainer better assess their players during a running race. Typically to examine the progress of players, a fitness coach will ask them to run a certain number of laps hoping they do better. It is hard however to measure each individual player’s running …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/10/weekend-project-running-race-statistics/

Sep 24 2017

The Honolulu Experience

No, this is not me teasing you about my last vacation experience. This is Microsoft’s latest effort at making servers more manageable. The Honolulu project, currently in technical preview, is a revolutionary web based management tool that is meant to replace tools like Server Manager, Regedit, and many more. Honolulu can be installed directly on …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/09/the-honolulu-experience/

Sep 06 2017

Compress logs from multiple servers using 7-Zip

Sometimes I need to collect Windows event logs from many servers for a number of reasons like sending them to a vendor during a support ticket. This is usually a mundane task as you need to open each server, go to the Event Logs location, compress the files, then copy them to central location before …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/09/compress-logs-from-multiple-servers-using-7-zip/

Aug 16 2017

PowerShell Script: Report-VMWareVMs

I’m working on migration of a few hundred VMs from VMWare to Hyper-V and one requirement I have is to take a snapshot of the current VMs configuration in VMWare for future reference for after we decommission the VMWare environment. Collecting VM specs, virtual disk information, network MAC addresses, etc… for hundreds of VMs using …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/08/powershell-script-report-vmwarevms/

Aug 14 2017

PowerShell Script: Convert-VMWareVM

In the past couple of days, I have been busy working on a new script to automate migration of VMs from VMWare to Hyper-V, or more precisely to System Center Virtual Machine Manager (VMM). You may ask why on earth would I use a script to “automate” a function that already exists in VMM and …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/08/powershell-script-convert-vmwarevm/

Jul 31 2017

PowerShell Function: Copy-VMFolder

Hyper-V in Windows Server 2016 and Windows 10 came with some very cool features that makes interacting with VMs easier than ever. The ability to copy files into a VM directly from host is such a blessing. The Hyper-V Module now includes the cmdlet copy-VMFile which can copy any “File” from the host to a …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/07/powershell-function-copy-vmfolder/

Jul 20 2017

Hyper-V Dynamic Port Distribution and f5 Load Balancer

Recently I got involved in a mysterious case. Hyper-V VMs face intermittent issues when communicating with f5 hardware load balancer. Let me first describe the network architecture and symptoms, VMs, load balancer, and load balanced services are in the same VLAN and subnet. The case we are working on is SMTP, so we can test …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/07/hyper-v-dynamic-port-distribution-and-f5-load-balancer/

Jun 29 2017

Migrate from NIC Teaming to SET in Windows Server 2016 and VMM

So you just upgraded your Hyper-V hosts to Windows Server 2016 and read about the new Switch Embedded Teaming (SET) switches and how they make life all roses and butterflies. In this post, we will discuss how to migrate from the traditional teaming in previous versions of Windows Server to the amazing SET virtual switch …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/06/migrate-from-nic-teaming-to-set-in-windows-server-2016-and-vmm/

Jun 29 2017

Ping all VMs in a Hyper-V Cluster

In a perfect world, everyone trusts that their VMs are working properly if Hyper-V or VMM are reporting that it is in a running state. However, sometimes we need to double check things using the most basic tool, PING! In this post, we will walk through a few PowerShell snippets that do the following, Finds …

Continue reading »

Permanent link to this article: http://almoselhy.azurewebsites.net/2017/06/ping-all-vms-in-a-hyper-v-cluster/

Older posts «