Patchworkβ [KVM-AUTOTEST,1/6] KVM test: disable password prompt on resume for Windows guests

login
register
about
Submitter Michael Goldish
Date 2009-11-04 14:05:37
Message ID <1257343542-27902-1-git-send-email-mgoldish@redhat.com>
Download mbox | patch
Permalink /patch/57581/
State New
Headers show

Comments

Michael Goldish - 2009-11-04 14:05:37
Add a command to setuprss.bat that disables the password prompt on resuming
from hibernation.
Note that for this change to take effect the local winutils.iso should be
updated as well.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>
---
 client/tests/kvm/deps/setuprss.bat |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Lucas Meneghel Rodrigues - 2009-11-10 16:31:28
Patchset applied, thanks!

On Wed, Nov 4, 2009 at 12:05 PM, Michael Goldish <mgoldish@redhat.com> wrote:
> Add a command to setuprss.bat that disables the password prompt on resuming
> from hibernation.
> Note that for this change to take effect the local winutils.iso should be
> updated as well.
>
> Signed-off-by: Michael Goldish <mgoldish@redhat.com>
> ---
>  client/tests/kvm/deps/setuprss.bat |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/client/tests/kvm/deps/setuprss.bat b/client/tests/kvm/deps/setuprss.bat
> index 7b6618b..82d620d 100644
> --- a/client/tests/kvm/deps/setuprss.bat
> +++ b/client/tests/kvm/deps/setuprss.bat
> @@ -5,6 +5,7 @@ copy %rsspath% C:\rss.exe
>  net user Administrator /active:yes
>  net user Administrator 1q2w3eP
>  netsh firewall set opmode disable
> +powercfg /G OFF /OPTION RESUMEPASSWORD
>
>  reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "Remote Shell Server" /d "C:\rss.exe 22" /t REG_SZ /f
>  reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon" /v "AutoAdminLogon" /d "1" /t REG_SZ /f
> --
> 1.5.4.1
>
> _______________________________________________
> Autotest mailing list
> Autotest@test.kernel.org
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
>

Patch

diff --git a/client/tests/kvm/deps/setuprss.bat b/client/tests/kvm/deps/setuprss.bat
index 7b6618b..82d620d 100644
--- a/client/tests/kvm/deps/setuprss.bat
+++ b/client/tests/kvm/deps/setuprss.bat
@@ -5,6 +5,7 @@  copy %rsspath% C:\rss.exe
 net user Administrator /active:yes
 net user Administrator 1q2w3eP
 netsh firewall set opmode disable
+powercfg /G OFF /OPTION RESUMEPASSWORD
 
 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "Remote Shell Server" /d "C:\rss.exe 22" /t REG_SZ /f
 reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\winlogon" /v "AutoAdminLogon" /d "1" /t REG_SZ /f