Month: November 2018

Microsoft Windows Server 2008 R2 – Disk Cleanup Installation

By default, the Disk Cleanup utility is not present on Microsoft Windows Server 2008 R2. However, copying the files below to the appropriate directories will make the utility available for use. After the files have been copied enter the command Cleanmgr.exe into a command prompt or Microsoft Windows PowerShell session to start the utility. Lastly, further…


Microsoft Windows PowerShell – DHCP Logs

You may use the following Microsoft Windows PowerShell cmdlet to view the last one hundred lines of a Microsoft Windows Server DHCP server log for a particular Internet Protocol (IP) address. This may be useful when you are troubleshooting DHCP errors in Microsoft Windows Server. Get-Content DhcpSrvLog-Mon.log | Select -Last 100 | Select-String -Pattern “X.X.X.X”…


Microsoft Windows PowerShell – Resolve-DnsName

You may use the Resolve-DnsName Microsoft Windows PowerShell cmdlet to perform Domain Name System (DNS) query resolution for the domain name(s) you specify. Below you will find a few examples of this cmdlet. To perform a standard query enter Resolve-DnsName domain.com. To perform a query without the use of a local hosts file or DNS cache enter Resolve-DnsName…


Microsoft Windows PowerShell – Remote Server Service Status

The Microsoft Windows PowerShell script below will request the hostname of a server as well as the service to be queried then provide the status of the service. <# .SYNOPSIS This script will request the hostname of a server, the name of the service, then provide it’s status. .DESCRIPTION This script will request the hostname…


Microsoft Windows PowerShell – Remote Server Uptime

The Microsoft Windows PowerShell script below will request the hostname of a server then provide it’s uptime using Event ID 6005. <# .SYNOPSIS This script will request the hostname of a server then provide it’s uptime. .DESCRIPTION This script will request the hostname of a server then provide it’s uptime. .EXAMPLE N/A. .AUTHOR Written by…