Link to home
Start Free TrialLog in
Avatar of kmcgorry
kmcgorry

asked on

Prevent Standby in XP Mode on Windows 7

How can I prevent XP Mode (Virtual PC) from going into standby mode?

I am running this virtual machine with all latest hotfixes on Windows 7 Ultimate 64-bit.  I have already disabled hibernate, hybrid-sleep, and sleep on Windows 7 through the power management control panel.

Thanks,

Kevin
Avatar of farazhkhan
farazhkhan
Flag of Pakistan image

Avatar of kmcgorry
kmcgorry

ASKER

Hi Faraz,

I saw this, but have absolutely no idea how to implement.  I can configure a control panel or options, and enter a command line or two, but this appears to be some kind of script I don't recognize.

Kevin
The question is valid and should remain open until an acceptable answer is provided, even if the answer is "I don't believe it can be done."

With Windows no longer selling XP, Virtual XP Mode is offered as the only possible solution for software that has not upgraded its compatibiility.  This question should be addressed.
Looks like the Technet link says it all: You can't do it without "scripting".
You can either switch the power config semi-automatically,  by issuing the appropriate powercfg commands described there before and after you use XP Mode, or use a batch file as shown also to change power config, start the VM, and when stopping the VM reset powercfg again.

You do not need scripting capabilites - just use the powershell script as given.
Start the XP Virtual Machine and use it's control panel to also disable hibernation etc in there.
For starters, you can still buy new systems with XP through June 2011; but, you have to get them from a small business division of Dell, Gateway, HP, etc.......
Second, why do you need to have the computer not sleep?  
If it is because you access it remotely, just set the power management on the NIC to allow waking the PC.
From Qlemo: "You do not need scripting capabilites - just use the powershell script as given."

Forgive my ignorance, but how do I use a powershell script?  This might be an acceptable answer if it is simple as double clicking to launch an executable.
As far as I understand your problem, you have turned off powersaving features in your Host OS, which is windows 7, but your guest application which is running XP is going into powersaving mode. From what I understand the script does is try to turn of Windows 7 power features, but not those of XP. So have you done as I mentioned earlier and opened XP as a guest, and gone into XP's powersaving settings to disable them there, and then run you XP-mode app? As XP is a 2nd OS running inside your main OS, it'll have it's own settings....
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.  I think that worked.