Virtual Windows XP
From Wiki.cyring.fr
(Difference between revisions)
Line 33: | Line 33: | ||
q | q | ||
y | y | ||
+ | </syntaxhighlight> | ||
+ | <syntaxhighlight lang="bash" line start="1"> | ||
+ | cp ~/tmp/config/system /mnt/WINDOWS/system32/config/ | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 09:17, 3 November 2012
qemu-img convert -f vpc -O raw "Virtual Windows XP.vhd" v2WinXP.img
mount -o loop,offset=32256 v2WinXP.img /mnt
mkdir ~/tmp/config
cp /mnt/WINDOWS/system32/config/* ~/tmp/config/
chntpw -e ~/tmp/config/system
nk CurrentControlSet cd CurrentControlSet nk Control cd Control nk CriticalDeviceDatabase cd CriticalDeviceDatabase nk primary_ide_channel cd primary_ide_channel nv 1 ClassGUID ed ClassGUID {4D36E96A-E325-11CE-BFC1-08002BE10318} nv 1 Service ed Service atapi cd .. nk secondary_ide_channel cd secondary_ide_channel nv 1 ClassGUID ed ClassGUID {4D36E96A-E325-11CE-BFC1-08002BE10318} nv 1 Service ed Service atapi cd .. q y
cp ~/tmp/config/system /mnt/WINDOWS/system32/config/