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
kmcgorryAsked:
Who is Participating?
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
You need to have PowerShell installed - checked; it comes with the OS starting with Vista.

You need your GUID of power settings, which you get by
powercfg -list
You need the PowerShell script called startVMshortcut.ps1, contents described in the post. Store in in your "Virtual Machines" folder.
Change the powercfg GUIDs in that script to yours (2x).

Create a desktop or menu shortcut, contents:
powershell -NoLogo -NonInteractive -WindowStyle hidden -File "startVMshortcut.ps1" YourVMHere "Virtual PC\YourVMHere\YourApplicationShortcutHere.lnk"
(one line), and Starting Folder set to your "Virtual Machines" folder.
The shortcut to your application in XP mode needs to be stored in the VM's subfolder, else you need to provide the complete path. Replace the Your... parts.
0
 
farazhkhanCommented:
0
 
kmcgorryAuthor Commented:
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
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
kmcgorryAuthor Commented:
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.
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
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.
0
 
rindiCommented:
Start the XP Virtual Machine and use it's control panel to also disable hibernation etc in there.
0
 
Davis McCarnOwnerCommented:
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.
0
 
kmcgorryAuthor Commented:
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.
0
 
rindiCommented:
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....
0
 
kmcgorryAuthor Commented:
Thanks.  I think that worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.