Difference between revisions of "Convert WindowsImage PS1 File"

no edit summary
Line 29: Line 29:


== Can it get worse? YES! ==
== Can it get worse? YES! ==
OK!  Great!  I've got my VHDX file and I'm good to go, right?  Of course not.  After attaching the VHDX file to the Hyper-V VM, it wouldn't start because the VHDX file was still locked, even after terminating the script and checking Task Manager to see if the VHDX file was still in use.  Nope, logging of and logging back on didn't work.  Checked what process had the file locked using [https://lockhunter.com/ LockHunter] (I'm not affiliated with this person or company, but it is really useful software so consider contributing to them) and it was locked by a process called System.
OK!  Great!  I've got my VHDX file and I'm good to go, right?  Of course not.  After attaching the VHDX file to the Hyper-V VM, it wouldn't start because the VHDX file was still locked, even after terminating the script and checking Task Manager to see if the VHDX file was still in use.  Nope, logging off and logging back on didn't work.  Checked what process had the file locked using [https://lockhunter.com/ LockHunter] (I'm not affiliated with this person or company, but it is really useful software so consider contributing to them) and it was locked by a process called System.


=== Tip ===
=== Tip ===