Category Archives: Windows

Debug powershell with write-host

A very basic command to output what’s stored in a variable to the command prompt in a powershell script.  This is part of a script to set IOPs on a VM located on a tintri storage array.  The script was … Continue reading →...

Posted in Windows | Tagged , | Leave a comment

File server migration using Robocopy

I recently was tasked with moving one of our file servers from one physical server to another.  The file server had a bunch of files/directories with different permissions used by our finance/IT/Legal team. There are two things to keep in … C...

Posted in Microsoft, Windows | Tagged , , , , , | 4 Comments

Create a pfx file with a certificate chain

I ran into an issue where an application would not accept the pfx file that I created for a web server.  I used the key file and the certificate file but for some reason it did not work. I had … Continue reading →...

Posted in Microsoft, Windows | Tagged , | Leave a comment

Windows Azure Pack error: You must first register Service Management Automation

I recently ran into an issue trying to install the Automation component in the Windows Azure Pack.  The following error showed up under “VM Clouds” Automation tab “You must first register Service Management Automation”.  It ...

Posted in Windows | Tagged , , , | Leave a comment

iPerf Network performance comparison between Virtual Machines on ESXi6

I finally found some time to run a series of iPerf network performance tests between Windows server 2008 R2, Windows 2012 and a Linux Debian virtual machines. The tests compare bandwidth throughput between vmxnet3, e1000 going through a 1Gbit and &he...

Posted in Linux, VMware, Windows | Tagged , , , , , , , , | 1 Comment

Detecting Ephemeral Port Exhaustion in Windows 7 / 8 / 2012

Ephemeral ports are ports that start at a higher range then regular ports. For example when compared to a web server that listens on port 80, ephemeral ports start from 49152 for Windows 2008 R2.  If there are scripts or … Continue reading &r...

Posted in Linux, Networking, Windows | Tagged , , , , , , , | 4 Comments

How to set up a Microsoft Network Load Balancing (NLB) in Windows 2008 R2

OVERVIEW Here is a quick guide how to set up two Web Servers that will be serving out the same web page for redundancy and load balancing purposes.  When we go to www.mywebsite.com address, the name will resolve to the Load Balancing … Cont...

Posted in Networking, Windows | Tagged , , | Leave a comment

Manually running sysprep.xml file generated by VMware vCenter

When a user deploys a VM from a template, there is an option to customize the virtual machine by attaching a customization spec to the VM.  What happens in the background is that the virtual machine is cloned from a … Continue reading →...

Posted in VMware, Windows | Tagged , , , | 1 Comment

Netstat script that runs every 60 seconds and counts open connections

Here is a quick NETSTAT script that runs every 60 seconds and appends the output to c:\ports\netstat.txt.  The script exports the count of connections in a specific state.  The output is very similar to what TcpView shows you at the bottom of &he...

Posted in Networking, Windows | Tagged , , , , , | Leave a comment