Tag Archives: system

PowerShell System Drive Clean-up

I’ve been working through a process of cleaning and optimising the C drives on a lot of VMs recently. Over time they build up with lots of junk that, when put together with hundreds of VMs, requires a significant amount of … Continue reading

Rate this:

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

Active Directory Dynamic DNS broken by Juniper SRX firewall ALG

Last week a Juniper SRX firewall was put in to replace an older internal firewall. This week a load of Windows Servers dropped out of Active Directory DNS. The scavenging period in AD DNS was configured to be 7 days. Coincidence? I … Continue reading

Rate this:

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

PowerShell: Get downtime between shutdown and startup

I have a requirement to provide the amount of time that servers are unavailable for, and the way I have been asked to calculate this is to measure time between when a server shuts down and when it has started … Continue reading

Rate this:

Posted in PowerShell, Windows | Tagged , , , , , , , , , , , , | 6 Comments

PowerShell: There are null values and then there are SQL null values

I was reading some data out of a SQL Server table, and wanted to do an operation if one of the string values returned, MAC, was either blank or null. I was using the following code: $NewServerName = “SomeServerName” $DBServerName … Continue reading

Rate this:

Posted in PowerShell, Scripting | Tagged , , , , , , , | 2 Comments

Disable Windows Error Recovery

Sometimes I find that one of my Windows VMs isn’t pinging the morning after I have released security updates. I have a look at the console of the VM and it looks like this: What causes Windows to boot into … Continue reading

Rate this:

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