Find and unmount CD drives with PowerCLI

Sometimes someone forgets to unmount the CD drive of a VM. This will interfere with operation tasks like setting a host in maintenance mode or using Update Manager. I recently had this issue, and the “update manager compliance check” told me that several VM’s where connected to a CD drive, which may interrupt the update…

Continue Reading

Windows 10 missing ssh-copy-id

Microsoft is finally shipping Windows with SSH. On my Windows 10 machine, it’s OpenSSH: PS C:\Users\Kasper> ssh -VOpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 Somehow they missed to get the ssh-copy-id tool implemented, so we need to find another way of copying our ssh keys. Thankfully it’s not that complicated, we can use powershell (probably even cmd) cat .\.ssh\id_rsa.pub…

Continue Reading

Ping not permitted in WSL

Using Windows subsystem for Linux (WSL) is so nice, when you are forced to work from an inferior OS, sometimes also referred to as “a gaming console”Especially combined with the Windows Terminal, which I wrote about here: https://www.nordal-lund.dk/?p=592 I’m sure that most Linux/Unix administrators will feel right at home. Despite all the goodness, there are…

Continue Reading

Forlænge windows prøve periode.

Ofte kan man have brug for at teste et eller andet i et givent OS, det kune f.eks. være Windows 7 embedded standard (det er ihvertfald det jeg skal teste) Som standard er der en 30 dages prøvepriode, når den er udløbet begynder computeren bl.a. selv at reboote hver anden time for ligesom at gøre…

Continue Reading