Autostart Corefig

Apr 8, 2013 at 8:15 PM
Just a quick tip for anyone wanting to autostart Corefig when they RDP into their Hyper-V server. (These instructions assume a default installation in C:\Corefig)
  1. Log into your Hyper-V server.
  2. From the command prompt (the black window), type notepad and press enter.
  3. In the notepad window, paste in the below
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"corefig"="powershell.exe -file C:\corefig\corefig.ps1"
  1. Save the file as Start.reg, change the 'Save as type' to All Files and click 'Save'.
  2. Go back to the command prompt, type start.reg and select yes at the confirmation prompt.
  3. Log off and log back in and Corefig will autostart alongside with the command prompt and powershell window.
Feb 25, 2014 at 3:34 PM
Copy this into the start.reg file.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"corefig"="powershell.exe -file C:\corefig\corefig.ps1"