Star Wars: Empire at War

From LANCommander
Developers
Petroglyph Games
Publishers
LucasArtsAspyr Media
Release Date
Windows: February 16, 2006
Genres
Real Time Strategy (RTS)Strategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play Star Wars: Empire at War - Forces of Corruption swfoc.exe {InstallDir}/EAWX True
Play Star Wars: Empire at War sweaw.exe {InstallDir}/GameData True
Terrain Editor EAW Terrain Editor.exe {InstallDir}/GameData False

Install Script

Empire at War's expansion pack requires specific registry keys to exist that point to the base game's installation directory.

$VirtualStore = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE"

$EmpireAtWarPath = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Empire at War\1.0"
$ForcesOfCorruptionPath = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Empire at War Forces of Corruption\1.0"
$EmpireAtWarUserPath = "registry::\HKEY_CURRENT_USER\SOFTWARE\Petroglyph\StarWars"
$ForcesOfCorruptionUserPath = "registry::\HKEY_CURRENT_USER\SOFTWARE\Petroglyph\StarWars FOC"

New-Item -Path "$EmpireAtWarPath" -Force
New-Item -Path "$ForcesOfCorruptionPath" -Force

New-ItemProperty -Path $EmpireAtWarPath -Name "InstallPath" -Value $InstallDirectory
New-ItemProperty -Path $EmpireAtWarPath -Name "ExePath" -Value "$InstallDirectory\GameData\sweaw.exe"
New-ItemProperty -Path $EmpireAtWarPath -Name "CD Key" -Value ""
New-ItemProperty -Path $EmpireAtWarPath -Name "EAWGold" -Value 20070323
New-ItemProperty -Path $EmpireAtWarPath -Name "Installed" -Value 1
New-ItemProperty -Path $EmpireAtWarPath -Name "Revision" -Value 10105

New-ItemProperty -Path $ForcesOfCorruptionPath -Name "InstallPath" -Value "$InstallDirectory\EAWX"
New-ItemProperty -Path $ForcesOfCorruptionPath -Name "ExePath" -Value "$InstallDirectory\EAWX\swfoc.exe"
New-ItemProperty -Path $ForcesOfCorruptionPath -Name "CD Key" -Value ""
New-ItemProperty -Path $ForcesOfCorruptionPath -Name "EAWGold" -Value 20070323
New-ItemProperty -Path $ForcesOfCorruptionPath -Name "Installed" -Value 1
New-ItemProperty -Path $ForcesOfCorruptionPath -Name "Revision" -Value 10100

###################################################

$Display = Get-PrimaryDisplay

New-Item -Path "$EmpireAtWarUserPath" -Force
New-Item -Path "$EmpireAtWarUserPath\Profiles" -Force
New-Item -Path "$EmpireAtWarUserPath\Profiles\Profile0" -Force
New-Item -Path "$EmpireAtWarUserPath\Profiles\Profile0\Network" -Force
New-Item -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Force

New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "Name" -PropertyType Binary -Value ([byte[]]@(
	0x6C, 0x00, 0x69, 0x00, 0x6E, 0x00, 0x30, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
)) -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "Color" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "Faction" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ScreenWidth" -Value $Display.Bounds.Width -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ScreenHeight" -Value $Display.Bounds.Height -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ScreenRefresh" -Value 60 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "WindowWidth" -Value 800 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "WindowHeight" -Value 600 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "Maximized" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "VolumeMaster" -Value 1061158912 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "VolumeMusic" -Value 1061158912 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "VolumeSpeech" -Value 1061158912 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "VolumeSFX" -Value 1061158912 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "MSS3DProviderName" -Value "" -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ScreenAA" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ShaderReloadingEnabled" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "AutoScrollEnabled" -Value 1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "TextureReloadingEnabled" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "GraphicsDetail" -Value 2 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "LastInternetGameType" -Value 1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "RememberInternetPassword" -Value 1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "AbsoluteScroll" -Value 1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ScrollSpeed" -Value 1065353216 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "TooltipDelayed" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "RMBScroll" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "BothButtonsRotate" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ShaderDetail" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "WaterDetail" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "TextureMipLevel" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ShadowVolumes" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "SoftShadows" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "HeatDistortion" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "Bloom" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ParticleDetail" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "MeshDetail" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ShadowDetail" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "EnvironmentDetail" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "HardwareCursor" -Value 1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "Windowed" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "DebugWindowEnabled" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "LastScenarioMap" -Value "" -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "LastInternetMapCampaign" -Value "" -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "LastInternetMapLand" -Value "" -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "LastInternetMapSpace" -Value "" -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "Subtitles" -Value 1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "LastInternetCredits" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "LastInternetGameTimer" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "CinematicPreviewDisabled" -Value 1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "VsyncEnabled" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "LastDeviceID" -Value 6422 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "MeasuredFillRate" -Value 1168244736 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "TacticalGameSpeed" -Value 2 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "StrategicGameSpeed" -Value 2 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ScrollSpeedModifier" -Value 1065353216 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "ScrollAbsolute" -Value 1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "AlternateMouseControl" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "Gamma" -Value 1065353216 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "WidescreenMonitor" -Value 1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "WidescreenAspectRatio" -Value 1071899731 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "AutoResolve" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "TutorialsPlayed" -Value "" -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingsCount" -Value 119 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode0" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier0" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode1" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier1" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode2" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier2" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode3" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier3" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode4" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier4" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode5" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier5" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode6" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier6" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode7" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier7" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode8" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier8" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode9" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier9" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode10" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier10" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode11" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier11" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode12" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier12" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode13" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier13" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode14" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier14" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode15" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier15" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode16" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier16" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode17" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier17" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode18" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier18" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode19" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier19" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode20" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier20" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode21" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier21" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode22" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier22" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode23" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier23" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode24" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier24" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode25" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier25" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode26" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier26" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode27" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier27" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode28" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier28" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode29" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier29" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode30" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier30" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode31" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier31" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode32" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier32" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode33" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier33" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode34" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier34" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode35" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier35" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode36" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier36" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode37" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier37" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode38" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier38" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode39" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier39" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode40" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier40" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode41" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier41" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode42" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier42" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode43" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier43" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode44" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier44" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode45" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier45" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode46" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier46" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode47" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier47" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode48" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier48" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode49" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier49" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode50" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier50" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode51" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier51" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode52" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier52" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode53" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier53" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode54" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier54" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode55" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier55" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode56" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier56" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode57" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier57" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode58" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier58" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode59" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier59" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode60" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier60" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode61" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier61" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode62" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier62" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode63" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier63" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode64" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier64" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode65" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier65" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode66" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier66" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode67" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier67" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode68" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier68" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode69" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier69" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode70" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier70" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode71" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier71" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode72" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier72" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode73" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier73" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode74" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier74" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode75" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier75" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode76" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier76" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode77" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier77" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode78" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier78" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode79" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier79" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode80" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier80" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode81" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier81" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode82" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier82" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode83" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier83" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode84" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier84" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode85" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier85" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode86" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier86" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode87" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier87" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode88" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier88" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode89" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier89" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode90" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier90" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode91" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier91" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode92" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier92" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode93" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier93" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode94" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier94" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode95" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier95" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode96" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier96" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode97" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier97" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode98" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier98" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode99" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier99" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode100" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier100" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode101" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier101" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode102" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier102" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode103" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier103" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode104" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier104" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode105" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier105" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode106" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier106" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode107" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier107" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode108" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier108" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode109" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier109" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode110" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier110" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode111" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier111" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode112" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier112" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode113" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier113" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode114" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier114" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode115" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier115" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode116" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier116" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode117" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier117" -Value 0 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode118" -Value -1 -Force
New-ItemProperty -Path "$EmpireAtWarUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier118" -Value 0 -Force

New-Item -Path "$ForcesOfCorruptionUserPath" -Force
New-Item -Path "$ForcesOfCorruptionUserPath\Profiles" -Force
New-Item -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0" -Force
New-Item -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Network" -Force
New-Item -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Force

New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "Color" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "Faction" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "Team" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ScreenWidth" -Value $Screen.Bounds.Width -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ScreenHeight" -Value $Screen.Bounds.Height -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ScreenRefresh" -Value 60 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "WindowWidth" -Value 800 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "WindowHeight" -Value 600 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "Maximized" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "VolumeMaster" -Value 1061158912 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "VolumeMusic" -Value 1061158912 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "VolumeSpeech" -Value 1061158912 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "VolumeSFX" -Value 1061158912 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "MSS3DProviderName" -Value "" -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ScreenAA" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ShaderReloadingEnabled" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "AutoScrollEnabled" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "TextureReloadingEnabled" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "GraphicsDetail" -Value 2 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "LastInternetGameType" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "RememberInternetPassword" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "AbsoluteScroll" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ScrollSpeed" -Value 1065353216 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "TooltipDelayed" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "RMBScroll" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "BothButtonsRotate" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "RedGreenFactionColors" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "AbilitiesDefaultToAutofire" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ShaderDetail" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "WaterDetail" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "TextureMipLevel" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ShadowVolumes" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "SoftShadows" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "HeatDistortion" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "Bloom" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ParticleDetail" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "MeshDetail" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ShadowDetail" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "EnvironmentDetail" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "HardwareCursor" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "Windowed" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "DebugWindowEnabled" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "LastScenarioMap" -Value "" -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "LastInternetMapCampaign" -Value "" -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "LastInternetMapLand" -Value "" -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "LastInternetMapSpace" -Value "" -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "Subtitles" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "LastInternetCredits" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "LastInternetGameTimer" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "CinematicPreviewDisabled" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "VsyncEnabled" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "LastDeviceID" -Value 6422 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "MeasuredFillRate" -Value 1168470626 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "MeasuredFillRate0" -Value 1151336448 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "MeasuredFillRate1" -Value 1152702035 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "MeasuredFillRate2" -Value 1152647168 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "MeasuredFillRate3" -Value 1152647168 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "MeasuredVertexRate0" -Value 1099881326 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "MeasuredVertexRate1" -Value 1099881326 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "DeviceBenchmarkTimestamp" -Value 6 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "TacticalGameSpeed" -Value 2 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "StrategicGameSpeed" -Value 2 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ScrollSpeedModifier" -Value 1065353216 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "ScrollAbsolute" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "AlternateMouseControl" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "Gamma" -Value 1065353216 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "WidescreenMonitor" -Value 1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "WidescreenAspectRatio" -Value 1071899731 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "AutoResolve" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "TutorialsPlayed" -Value "" -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingsCount" -Value 153 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode0" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier0" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode1" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier1" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode2" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier2" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode3" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier3" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode4" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier4" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode5" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier5" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode6" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier6" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode7" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier7" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode8" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier8" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode9" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier9" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode10" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier10" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode11" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier11" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode12" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier12" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode13" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier13" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode14" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier14" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode15" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier15" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode16" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier16" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode17" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier17" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode18" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier18" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode19" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier19" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode20" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier20" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode21" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier21" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode22" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier22" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode23" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier23" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode24" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier24" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode25" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier25" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode26" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier26" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode27" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier27" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode28" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier28" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode29" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier29" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode30" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier30" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode31" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier31" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode32" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier32" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode33" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier33" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode34" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier34" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode35" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier35" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode36" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier36" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode37" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier37" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode38" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier38" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode39" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier39" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode40" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier40" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode41" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier41" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode42" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier42" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode43" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier43" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode44" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier44" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode45" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier45" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode46" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier46" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode47" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier47" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode48" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier48" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode49" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier49" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode50" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier50" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode51" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier51" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode52" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier52" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode53" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier53" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode54" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier54" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode55" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier55" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode56" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier56" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode57" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier57" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode58" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier58" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode59" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier59" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode60" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier60" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode61" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier61" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode62" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier62" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode63" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier63" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode64" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier64" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode65" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier65" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode66" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier66" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode67" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier67" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode68" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier68" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode69" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier69" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode70" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier70" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode71" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier71" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode72" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier72" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode73" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier73" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode74" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier74" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode75" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier75" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode76" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier76" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode77" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier77" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode78" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier78" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode79" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier79" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode80" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier80" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode81" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier81" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode82" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier82" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode83" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier83" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode84" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier84" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode85" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier85" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode86" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier86" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode87" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier87" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode88" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier88" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode89" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier89" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode90" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier90" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode91" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier91" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode92" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier92" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode93" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier93" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode94" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier94" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode95" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier95" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode96" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier96" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode97" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier97" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode98" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier98" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode99" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier99" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode100" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier100" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode101" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier101" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode102" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier102" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode103" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier103" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode104" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier104" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode105" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier105" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode106" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier106" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode107" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier107" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode108" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier108" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode109" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier109" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode110" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier110" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode111" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier111" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode112" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier112" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode113" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier113" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode114" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier114" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode115" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier115" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode116" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier116" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode117" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier117" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode118" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier118" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode119" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier119" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode120" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier120" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode121" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier121" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode122" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier122" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode123" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier123" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode124" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier124" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode125" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier125" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode126" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier126" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode127" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier127" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode128" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier128" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode129" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier129" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode130" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier130" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode131" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier131" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode132" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier132" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode133" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier133" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode134" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier134" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode135" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier135" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode136" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier136" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode137" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier137" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode138" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier138" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode139" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier139" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode140" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier140" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode141" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier141" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode142" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier142" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode143" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier143" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode144" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier144" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode145" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier145" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode146" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier146" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode147" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier147" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode148" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier148" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode149" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier149" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode150" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier150" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode151" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier151" -Value 0 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingKeycode152" -Value -1 -Force
New-ItemProperty -Path "$ForcesOfCorruptionUserPath\Profiles\Profile0\Player" -Name "KeySettingModifier152" -Value 0 -Force

Uninstall Script

Removes the registry keys created by the install script

$EmpireAtWarPath = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Empire at War\1.0"
$ForcesOfCorruptionPath = "registry::\HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\LucasArts\Star Wars Empire at War Forces of Corruption\1.0"

Remove-Item -Path "$EmpireAtWarPath" -Force -Recurse
Remove-Item -Path "$ForcesOfCorruptionPath" -Force -Recurse

Name Change Script

# Converts a string to a UTF16-encoded byte array. This looks like ASCII characters separated by 0x00 in most cases.
$profileNameBytes = ConvertTo-StringBytes -Input $NewPlayerAlias -Utf16 1 -MaxLength 20 -MinLength 20

New-Item -Path "HKCU:\SOFTWARE\Petroglyph"
New-Item -Path "HKCU:\SOFTWARE\Petroglyph\StarWars"
New-Item -Path "HKCU:\SOFTWARE\Petroglyph\StarWars\Profiles"
New-Item -Path "HKCU:\SOFTWARE\Petroglyph\StarWars\Profiles\Profile0"
New-Item -Path "HKCU:\SOFTWARE\Petroglyph\StarWars\Profiles\Profile0\Player"
New-Item -Path "HKCU:\SOFTWARE\Petroglyph\StarWars FOC"
New-Item -Path "HKCU:\SOFTWARE\Petroglyph\StarWars FOC\Profiles"
New-Item -Path "HKCU:\SOFTWARE\Petroglyph\StarWars FOC\Profiles\Profile0"
New-Item -Path "HKCU:\SOFTWARE\Petroglyph\StarWars FOC\Profiles\Profile0\Player"

New-ItemProperty -Path "HKCU:\SOFTWARE\Petroglyph\StarWars\Profiles\Profile0\Player" -Name "Name" -PropertyType Binary -Value $profileNameBytes -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Petroglyph\StarWars FOC\Profiles\Profile0\Player" -Name "Name" -PropertyType Binary -Value $profileNameBytes -Force