Summary: Use Windows PowerShell to create an entry in the Windows registry structure.
How do I create an entry in the Windows registry with Windows PowerShell?
Use the New-ItemProperty cmdlet to add the information you need.
For example, the following command makes a new name called StartMeUp with a value of Runit.exe
under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run:
$RegistryPath=”HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Run\"
$Name=”StartMeUp”
$Value=”Runit.exe”
NEW-ITEMPROPERTY $RegistryPath -Name $Name -Value $Value