/logo.png

Resolve DNS and IP addresses with PowerShell

In this case we’re going to use the method GetHostAddresses of the Dns class of the Sytem.Net namespace. For PowerShell 2.0 you can use following Windows PowerShell One Liners: Name to IP Address (DNS Forward) 1 2 [System.Net.Dns]::GetHostAddresses('graef.io') [System.Net.Dns]::GetHostAddresses('graef.io').IPAddressToString IP Address to Name (DNS Reverse) 1 2 3 4 5 [System.Net.Dns]::GetHostbyAddress('85.13.135.42') HostName Aliases AddressList -------- ------- ----------- graef.io {} {85.13.135.42} As of PowerShell 4.0 you can use the Cmdlet Resolve-DnsName as well as for both Forward and Reverse:

Show non-present devices in Windows with Device Manager

Open PowerShell or Commmand Shell, enter the following 1 2 set devmgr_show_nonpresent_devices=1 devmgmt.msc . This will open your device manager with the ability to show hidden devices. Click on View and select “Show hidden devices”. . Select your hidden device you need to remove, right click and select uninstall. That’s it! . In case you need to remove multiple orphan / hidden / ghosted devices like disks on Windows Failover Cluster Nodes you can use Ghostbuster for that.

Wordpress Editor Jump Fix

I’m not quite sure why WordPress does this but it seems to happen after some major upgrades or if one of your themes is not aligned correctly. The editor is jumping up and down while writing posts and this drives me insane! It seems not to happen everytime but mostly after a wordpress update happened or changing something on the interface.