Uninstall software remotely with WMIC

Here is a very useful command that will silently uninstall a remote application and reboot if required (I ran this on 2012 R2 servers). Caution1: If you receive an error “Invalid node (discarded)” the command still lists software but it &...

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

Running disk cleanup Remotely as a scheduled task

This only works up to server 2008 R2, Server 2012 no longer has the disk cleanup tool. Windows 2012 uses dism powershell tool to do a similar clean up. I was dealing with a server that was running out of … Continue reading →...

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

How can I see Time-To-Live (TTL) for a DNS record?

There are two ways that you can query a TTL value for a DNS record. You can use nslookup with the the -q=wks option. You can also view the TTL value in the local “DNS Resolver Cache” on the local … Continue reading →...

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

Microsoft Network Monitor 3.4 Network capture filters

I’m a big fan of WireShark but recently found myself using Microsoft Network Monitor more as we have it installed on a lot of Web servers. Here is a list of filters that i found useful. Some of these filters … Continue reading →...

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

Linux – Vim file editor cheat sheet

How to navigate in a Linux file editor VI, pasting a cheat sheet. There are many more options but this is all i usually need to maneuver around. :wq Save file and quit :q! Exit without saving :set nu Display … Continue reading →...

Posted in Linux | Tagged , | Leave a comment

PowerShell create a simple dotted progress bar

I was looking to create a simple dotted progress bar in PowerShell. I needed something basic and simple similar to bash script progress bars. The below is exactly what I needed, its a timed for loop that creates six dots, … Continue reading &r...

Posted in Scripting | Tagged , , | Leave a comment

Disabling TripleDES ciphers on Windows Server 2003 breaks SSL connectivity

As companies start to re-mediate vulnerabilities they start to disable certain ciphers. One thing to be aware of is that Windows 2003 does not support AES 128 or 256 ciphers by default. When you disable TripleDES ciphers on Windwos 2003 … Cont...

Posted in Microsoft | Tagged , | Leave a comment

EqualLogic PS4100E SAN Adding a second member to a group through a serial connection

We have a PS4100 EqualLogic storage array that was running out of space. All the drive bays were full so we ordered another unit. I set it up as RAID-50 and added it as a second member to the group. … Continue reading →...

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

Troubleshoot a Windows server that randomly hangs

Here is a batch script that I found useful to identify which service or process was highly active just before a server froze up. On the server that I was troubleshooting the CPU would spike to a 100% and the … Continue reading →...

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

Script to capture a duplicate IP on your network

Here is a quick batch script to help identify a duplicate IP. When you run the “arp -a” command in the windows command prompt it will show you the IP address and the MAC address associated with the IP. When … Continue reading &rarr...

Posted in Scripting | Tagged | Leave a comment