Click here to Skip to main content
15,887,436 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Rant. Pin
Daniel Pfeffer12-Jul-22 7:42
professionalDaniel Pfeffer12-Jul-22 7:42 
GeneralRe: Rant. Pin
dandy7212-Jul-22 7:46
dandy7212-Jul-22 7:46 
GeneralRe: Rant. Pin
Craig Robbins12-Jul-22 8:00
Craig Robbins12-Jul-22 8:00 
GeneralRe: Rant. Pin
j snooze12-Jul-22 11:56
j snooze12-Jul-22 11:56 
GeneralRe: Rant. Pin
Gary R. Wheeler12-Jul-22 13:08
Gary R. Wheeler12-Jul-22 13:08 
GeneralRe: Rant. Pin
DerekT-P13-Jul-22 2:20
professionalDerekT-P13-Jul-22 2:20 
GeneralRe: Rant. Pin
Andreas Mertens12-Jul-22 17:55
professionalAndreas Mertens12-Jul-22 17:55 
General"Reconnecting" to VMs... Pin
dandy7212-Jul-22 5:03
dandy7212-Jul-22 5:03 
Hyper-V makes it trivial to create a new VM and point to an existing .VHD/.VHDX file to boot from it. This makes it rather easy to take a hard drive full of VMs, and move them to another machine and run those VMs from there. Even if all you have is VHD/VHDX files and not the associated config files. You may be asked to re-activate (in the case of Windows) in some instances, but it beats recreating a VM entirely from scratch.

It gets tedious however if you have a lot of VHDs and have to manually recreate VMs one-by-one and point each instance to a different file. Hyper-V has lots of PowerShell cmdlets - has anyone ever tried to create a script that would (a) enumerate .VHD files starting from a given root folder and (b) create a new VM for each VHD it finds?

I'm not looking for a full solution. Just some pointers as to what cmdlets might be useful to get the process going.
GeneralRe: "Reconnecting" to VMs... Pin
Andreas Mertens12-Jul-22 5:07
professionalAndreas Mertens12-Jul-22 5:07 
GeneralRe: "Reconnecting" to VMs... Pin
dandy7212-Jul-22 6:57
dandy7212-Jul-22 6:57 
GeneralRe: "Reconnecting" to VMs... Pin
Andreas Mertens12-Jul-22 7:51
professionalAndreas Mertens12-Jul-22 7:51 
GeneralRe: "Reconnecting" to VMs... Pin
dandy7213-Jul-22 4:24
dandy7213-Jul-22 4:24 
GeneralRe: "Reconnecting" to VMs... Pin
fgs196312-Jul-22 8:52
fgs196312-Jul-22 8:52 
GeneralRe: "Reconnecting" to VMs... Pin
dandy7213-Jul-22 4:29
dandy7213-Jul-22 4:29 
GeneralRe: "Reconnecting" to VMs... Pin
fgs196313-Jul-22 9:52
fgs196313-Jul-22 9:52 
GeneralRe: "Reconnecting" to VMs... Pin
dandy7213-Jul-22 10:24
dandy7213-Jul-22 10:24 
GeneralRe: "Reconnecting" to VMs... Pin
Paul Sanders (the other one)13-Jul-22 7:36
Paul Sanders (the other one)13-Jul-22 7:36 
GeneralRe: "Reconnecting" to VMs... Pin
englebart13-Jul-22 15:58
professionalenglebart13-Jul-22 15:58 
GeneralRe: "Reconnecting" to VMs... Pin
dandy7214-Jul-22 5:18
dandy7214-Jul-22 5:18 
GeneralRe: "Reconnecting" to VMs... Pin
Peter Adam13-Jul-22 10:35
professionalPeter Adam13-Jul-22 10:35 
GeneralRe: "Reconnecting" to VMs... Pin
dandy7214-Jul-22 5:22
dandy7214-Jul-22 5:22 
GeneralRe: "Reconnecting" to VMs... Pin
Peter Adam14-Jul-22 21:10
professionalPeter Adam14-Jul-22 21:10 
GeneralRe: "Reconnecting" to VMs... Pin
dandy7215-Jul-22 4:09
dandy7215-Jul-22 4:09 
GeneralWordle strangeness Pin
pkfox12-Jul-22 2:34
professionalpkfox12-Jul-22 2:34 
GeneralRe: Wordle strangeness Pin
den2k8812-Jul-22 3:22
professionalden2k8812-Jul-22 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.