This project has moved. For the latest updates, please go here.

Corefig will always install net4 and powershell

Jun 29, 2013 at 10:37 PM
Hello Guy's,
i have install corefig on my Windows Hyper-V Core 2012 Server.
  1. i copied all files to C:\corefig
  2. i start the cmd an run CSCRIPT Start_corefig.wsf
  3. corefig ask me to install net4 and powershell -> i click YES
  4. i opend the regedit an create a new reg-entrie to start corefig automatic
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
    "corefig"="powershell.exe -file C:\corefig\corefig.ps1"
After the first start it works fine, but after the second start he ask me with yes or no to install Net4 and Powershell.

what is my fault? thanks for help :)
Coordinator
Jun 30, 2013 at 1:20 AM
It's not your fault.
Is there another line in the Run key? The .ps1 file itself doesn't ask to install anything, but the Start_Corefig.wsf file does.
Jun 30, 2013 at 9:09 AM
in my Run are 2 Keys.
  1. sconfig = cmd.exe /k %windir%\system32\sconfig.cmd (it is standard)
  2. corefig = C:\corefig\Start_Corefig.wsf
The corefig Key changed automatic after the second restart and i have a full checkbutton ( Load at windows startup) in the corefig-gui.
Coordinator
Jul 1, 2013 at 1:16 PM
Uncheck the box. That will remove the second entry, which is causing your problem. It should not return on its own. All you need is the line that you added in step 4 in your first post.
Jul 2, 2013 at 8:33 PM
Edited Jul 2, 2013 at 8:34 PM
Sorry thats not true.
When i uncheck the box and added the Key from Step 4. the Key changed automatic after the second restart in corefig = C:\corefig\Start_Corefig.wsf
Coordinator
Jul 2, 2013 at 8:40 PM
OK, I see it.
Delete the automatically created line. Rename yours to anything other than "Corefig".
Jul 8, 2013 at 7:47 AM
Perfect, it works.

Thanks for your help. thumbs up