May 2016

How to remove hidden network adapters

Windows automatically hides devices that are not presently connected to the system, but they still exist in Windows’ configuration. This is especially problematic when changing virtual network adapters and not being able to remove IP configurations from old adapters. To resolve:

  1. Click Start, click Run, type cmd.exe, and then press ENTER.
  2. Type “set devmgr_show_nonpresent_devices=1“, and then press ENTER.
  3. Type Start DEVMGMT.MSC, and then press ENTER.
  4. Click View, and then click Show Hidden Devices.
  5. Expand the Network Adapters tree.
  6. Right-click the dimmed network adapter, and then click Uninstall.

Quick and Simple Way to Export DHCP Scope Settings From One Server to Another

Applies to:

Windows Server 2008 R2, Windows Server 2012R2, Windows Server 2016

From the command prompt on the source DHCP server run the following command:

2.  Copy the “dhcp.dat” file to the new, or destination, DHCP server and run the following command:

While running the export command, the DHCP service will be temporarily stopped and won’t respond to DHCP requests.  Also, the import will fail if there are any existing DHCP scopes that overlap with the original DHCP servers configuration.

“Host SMBus controller not enabled!”

CentOS guest instances in VMware sometimes come up with the boot error message:

This error is being caused because VMware doesn’t actually provide that level interface for CPU access, but Ubuntu try to load the kernel module anyway.

How to fix it:

add the line:

Reboot.

NOTE: for older versions use blacklist i2c_piix4 instead.
NOTE: it works both in VMWare Fusion 5 and 6, and Ubuntu LTS 12.04 and 14.04

Find out mapped network drive logins

If you have shared drives in a multi-domain environment and need to know what each drive was logged on as, this is the command to find out:

or

or

Another way to see this is to look on the machine that is hosting the shares.
Look in Computer Management -> Shared Files -> Open Files.

This will list the user account that is being used.