HenDaBen.Com

Home
About
Gallery
Blog
News
Downloads
Services
Contact
Home
About
Gallery
Blog
News
Downloads
Services
Contact

How to easily deploy files

31.3.2026 by HenDaBen

Deploy small

I came across a problem on SnowRunner (yes I finally got it after completing MudRunner and Spintires 100%) as every time I quit the game, all my precious settings would be erased. Like a wet rag to my face I was clueless what to do.

I found out that the same bug appeared like six years ago to someone, and SnowRunner devs told him to make a ticket to get it fixed. I guess it never got fixed as I'm here to experience this feature yet again

Powershell

Let's Powershell!

Pwershell should be available on all Windows. No matter what your edition you're running. I used to do some PowerShell scripting some time ago and I had this one thing in my mind. What about a icon on your desktop - just doubleclick it and the settings are applied.

And that's what this blogpost is about!

Deploy Files

First thing to do is get the file you need to deploy - in my case it is a config (config.CFG) file. Here's the actual script:

$sourceFile = "C:\Users\henri\Documents\Testhtml\hdbcom\v200\2026\deploy\filesToDeploy\user_profile.CFG" $destinations = @( "C:\Users\henri\Documents\Testhtml\hdbcom\v200\2026\deploy\filesToDeploy\deployedFiles" ) foreach ($dest in $destinations) { #existing if (-Not (Test-Path $dest)) { Write-Host "Creating folder: $dest" New-Item -ItemType Directory -Path $dest -Force } #copykat $destinationFile = Join-Path $dest "user_profile.CFG" Copy-Item -Path $sourceFile -Destination $destinationFile -Force Write-Host "Files moved to $destinationFile" } Write-Host "All files moved."

Now in this script you should replace the path on line 1 and 3. Also, the name of your file to which is copied on line 12 needs to be renamed.

For newbies, below is a screenshot of File Explorer, what and where happens.

Windows File Explorer

Remember - right click your script and send it to desktop. Then you can just run it easily from there until your bug is fixed.

Git Bash deploy list

Please note

Don't download and run random powershell scripts if you don't know what they do. It could end up in loss of valuable data.

If your PowerShell refuses to run scripts (even via Admin), make a new powershell script with the following code:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine -Force

Also, you can use PowerShell ISE editor to create more scripts, it is just like any IDLE or IDE software.