5 winkey='HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon'
9 for name in $(virsh -q list --all | awk '{print $2}'); do
11 eval $(guestfish --listen --ro -d "$name" -i)
12 root=$(guestfish --remote "inspect-get-roots")
13 type=$(guestfish --remote inspect-get-type "$root")
14 guestfish --remote exit
15 # Depending on the guest type ...
19 virt-win-reg "$name" "$winkey" "$winval"
23 virt-cat -d "$name" /var/log/wtmp > /tmp/wtmp
25 grep -Ev "^reboot|^shutdown|^wtmp begins|^$" | \
30 echo -n "($name - unknown guest type, ignored)"