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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Acronis Data Cloud 7.8 Enhances Cyber Protection

A closer look at five essential enhancements that benefit end-users and help MSPs take their cloud data protection business further.

Qlemo"Batchelor", 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
Qlemo"Batchelor", 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kmcgorryAuthor Commented:
Thanks.  I think that worked.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.