CMD prompt to enable Virtual PC.


Recommended Posts

Hi.

I have a user who requires XP mode on his Win 7 laptop. All the components have been installed but it looks like Virtual PC needs to be enabled in optional features. However, when I open optional features either through program's and features or directly thought a search, I get a blank window. I have run a few diagnostic tools such as sfc /scannow and running the compatibility tool and checking it for errors as per this thread, http://www.raymond.cc/blog/fix-blank-or-empty-list-in-vista-turn-windows-features-on-or-off-optionalfeaturesexe/ but no luck. However this appear to be the only thing wrong with his laptop and if we can get VPC enabled then I don't need to worry about this too much.

Can Virtual PC be enabled using a CMD prompt? If so what is the line?

Link to comment
https://www.neowin.net/forum/topic/1139466-cmd-prompt-to-enable-virtual-pc/
Share on other sites

Does your his system support hardware virtualization?

scum.

Yep and checked it enabled. What I found strange was the optional features window was blank.

Try the following at an elevated command prompt (run as admin)

dism /online /enable-feature /featurename:VirtualPC

I will try this next time I see him but it looks like it is what I am after.

Many thanks.

I personally would be more concerned with this issue

"when I open optional features either through program's and features or directly thought a search, I get a blank window."

Clearly something is wrong - why do you not care to fix that issue?

The user is one I don't see too often and I did have a good look through at the problem before the user had to leave the office. The issue seems to be reasonably common and running a couple of scans showed his laptop was clean of malware/viruses. His laptop may well be replaced soon and this is the only issue he is having so I just ran out of time trying to fix both issues.

did you check the date and time on the computer?

http://support.microsoft.com/kb/931712

When you click Turn Windows features on or off in the Programs and Features Control Panel item, the Windows Features dialog box is empty. No features are shown.

  1. Click Start
    VistaStartButton.jpg , and then click Run.
  2. In the Open box, type timedate.cpl, and then press ENTER. The Date and Time dialog box opens.
  3. On the Date and Time tab, click Change date and time. If the User Account Control dialog box opens, click Continue.
  4. One of two things will happen next. Choose either A or B to continue.
    A: If you are prompted to type an administrator password, and you see administrator account names listed, you are logged on with a standard account. If A: is true, you are not the computer administrator. If you are logged on with a standard account and you want to continue with this task, you must be able to supply an administrator account name and password every time that you are prompted. Unfortunately, if you do not know the password for any administrator accounts on your computer, these methods cannot help you. You might want to ask someone for help or contact support.
    B: If you are not prompted to type an administrator password, and you do not see administrator account names listed, you are logged on with a computer administrator account. Click Cancel, and then click Cancel again to close the Date and Time dialog box. If B: is true, you are the computer administrator, so let's get started.

Problem is if you seeing such a basic problem where you can not see what features have been added, even if you turn run a cmd line command to add the feature. How do you know there is not other issues that would prevent it from working. Did you run a SFC /scannow?

did you check the date and time on the computer?

http://support.microsoft.com/kb/931712

When you click Turn Windows features on or off in the Programs and Features Control Panel item, the Windows Features dialog box is empty. No features are shown.

  1. Click Start
    VistaStartButton.jpg , and then click Run.
  2. In the Open box, type timedate.cpl, and then press ENTER. The Date and Time dialog box opens.
  3. On the Date and Time tab, click Change date and time. If the User Account Control dialog box opens, click Continue.
  4. One of two things will happen next. Choose either A or B to continue.
    A: If you are prompted to type an administrator password, and you see administrator account names listed, you are logged on with a standard account. If A: is true, you are not the computer administrator. If you are logged on with a standard account and you want to continue with this task, you must be able to supply an administrator account name and password every time that you are prompted. Unfortunately, if you do not know the password for any administrator accounts on your computer, these methods cannot help you. You might want to ask someone for help or contact support.
    B: If you are not prompted to type an administrator password, and you do not see administrator account names listed, you are logged on with a computer administrator account. Click Cancel, and then click Cancel again to close the Date and Time dialog box. If B: is true, you are the computer administrator, so let's get started.

Problem is if you seeing such a basic problem where you can not see what features have been added, even if you turn run a cmd line command to add the feature. How do you know there is not other issues that would prevent it from working. Did you run a SFC /scannow?

Thanks Budman, did run through that article too as well as SFC and it all came up clean. The user isn't due in my office for a while but the next time he is I can take another look to see what's going on.

I was reffering to StrikedOut's picture.

I like Portsmouth FC.

but all in good fun :) got nothing against others.

Ah, I have sigs disabled so just read your comment and could see no picture :rofl:

Didn't even spot that (Skate filter :D) As much as I am enjoying the antics going down the M27, I hope they survive. Nothing like a good rivalry to keep things interesting.

This topic is now closed to further replies.
  • Posts

    • Server Summit had a heap of announcements, ADCS changes are baller.
    • Nice, hope they *finally* fixed the issue with the NTFS driver where the system would completely brick during large file copies using the built in driver. It's been broken for years requiring me to use the older, slower, NTFS-3G FUSE driver.
    • Windows 11 KB5094126 BSODing, freezing, forcing BitLocker lockout, breaks OneDrive, and more by Sayan Sen Microsoft released Windows 11 KB5094126 and KB5093998 last week as the latest Patch Tuesday updates. Following that the company also published the accompanying dynamic updates under KB5094149, KB5095971, and KB5094156. While Microsoft has so far not acknowledged any major problems with the release, some users online are running into problems. These range from OneDrive and Dropbox access issues, BitLocker recovery lockouts, to blue screens and BSODs. The most common one seems to be happening with HP systems wherein affected users say they hit 0xc0430001 BSOD (blue screen of death) error code after the KB5094126 update. We wonder if this could be related to the recent bug we covered on HP devices wherein the ongoing Secure Boot certificate updates are leading to similar issues. While we are not certain, users affected by this issue likely need to ensure that the boot.stl file is included on the installation media (such as a USB installer or ISO), if the above-mentioned dynamic updates are deployed. If this file is missing, computers may fail to boot from the installation media and could display the error 0xc0430001. This STL file is used by Secure Boot to verify that the boot files are trusted, so it must match the same Windows version and system architecture. To ensure the file is included, Microsoft recommends using the Update WinPE script, which automatically updates the image and handles the required files. Alternatively, you can manually copy the boot.stl file from the Windows\Boot\EFI folder on a Windows device and place it in the matching folder on your installation media before deploying the updated image. Aside from blue screening some users also note their systems have been freezing following the update. This could be happening to Lenovo PCs specifically. In the case of the OneDrive and Dropbox access issues, a user figured out that there could be a conflict with UAC. He explained: "Okay, so I did some digging, and in our environment KB5094126 breaks OneDrive and Dropbox in Explorer. I went through all our GPOs and found out that the combination of disabling UAC and having my user being a local admin breaks OneDrive in Explorer. ... If I enable UAC again, then it works, even with KB5094126 still installed." Hopefully, Microsoft will look into these issues. Source: Microsoft forum (link1, link2, link3, link4), Reddit (link1, link2, link3, link4)
    • It is when it's a desktop in my house though for a PC that's lightly used and not really important when it is. If it was a laptop, it would be a different story. The real solution is varied and begins starting at post #22 in that thread.
  • Recent Achievements

    • Week One Done
      Jeroen Wilms earned a badge
      Week One Done
    • Week One Done
      rolfus earned a badge
      Week One Done
    • One Month Later
      Leroy Jethro Gibbs earned a badge
      One Month Later
    • Conversation Starter
      flexorcist earned a badge
      Conversation Starter
    • One Month Later
      AndreaB earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      508
    2. 2
      +Edouard
      198
    3. 3
      PsYcHoKiLLa
      138
    4. 4
      ATLien_0
      90
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!