Thursday, September 22, 2016

Export your WIFI passwords from Windows

Easy, from an elevated CMD prompt:

netsh wlan export profile key=clear

You will find your password in the KeyMaterial fild in the XML file.


Enjoy and share the WIFI.

Wednesday, September 07, 2016

Robocopy Fails on Windows Cluster Shared Volumes (CSV)

Using Windows 7 client, or Windows server 2012 r2 Hyper-V console on a cluster node, robocopy fails to copy files from a CSV to a client share.

Either using Windows Explorer or XCopy works, however XCopy failed on files over 2GB... So lets go old school for the VXD copy.

H:\>robocopy \\\c$\ClusterStorage\Volume1\dave.txt D:\

  Started : Thu Aug 30 11:16:48 2016
   Source : \\\c$\ClusterStorage\Volume1\dave.txt\
    Dest : D:\
    Files : *.*
  Options : *.* /COPY:DAT /R:1 /W:1
2016/08/30 11:16:48 ERROR 267 (0x0000010B) Accessing Source Directory \\\c$\ClusterStorage\Volume1\dave.txt\
The directory name is invalid.

H:\>robocopy w:\dave.txt D:\
  Started : Thu Aug 30 11:17:10 2016
  Source = w:\dave.txt\
  Dest : D:\
  Files : *.*
  Options : *.* /COPY:DAT /R:1 /W:30
2016/08/30 11:17:10 ERROR 267 (0x0000010B) Accessing Source Directory w:\dave.txt\
The directory name is invalid.

H:\>xcopy w:\dave.txt D:\
1 File(s) copied

No fix, sorry, just a problem.

Tuesday, June 14, 2016

Changing MAC Address on Hyper-V and routing fails

With a traditional computer, running Windows, you can simply go to the network card, change the MAC address and everything works as expected. 

But recently I did this on a Hyper-V server in a SCVMM network and while it would work correctly on the local subnet it could not route to a adjacent connected network. I would fail to ping the remote router.

So to correct this make sure you update the MAC Address in SCVMM computer object.

Friday, June 10, 2016

Hyper-V media disconnection

Got an issue with Hyper-V servers connected to media?

Run this.

[string[]]$cn = Get-ADComputer -Filter * -SearchBase 'OU=Hypervisors,OU=Services,DC=internal' | select -ExpandProperty dnshostname
$vm = Get-VM -ComputerName $cn -Name *
$vm | Get-VMDvdDrive | ? DvdMediaType -ne None | Set-VMDvdDrive -Path:$null

Blog Archive