CSGO Autoexec Creation Using Powershell

August 31, 2019


To run Powershell scripts on Windows 10 make sure to set:

Set-ExecutionPolicy RemoteSigned
Powershell script csgo_autoconfig.ps1:
New-Item "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\autoexec.cfg"

Add-Content -path `
"C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\autoexec.cfg" @"
// Add config here
"@
When you run the script it creates autoexec.cfg and adds the specified config.

Comments

©2013-2023 All Rights Reserved.