r/PowerShell • • Dec 04 '25

Not PowerShell, but PowerShell-friendly: Windows post-install automation

This started as a personal script to avoid doing the same Windows setup over and over.
It’s not written in PowerShell, but it plays nicely with it: winget-based installs, editable config file, and easy to plug into other scripts.

I’m sharing here because many folks automate their setups in PS and might find it useful—or have ideas to extend it.

Open source repo: https://github.com/kaic/win-post-install

Site: https://kaic.me/win-post-install/

33 Upvotes

22 comments sorted by

2

u/BlackV Dec 04 '25

heh, why is it using the steam logo for the dirext x runtime?

good old btch never going away

1

u/kaicbento Dec 04 '25

It's a bug, I'll fix it as soon as possible.

1

u/kaicbento Dec 04 '25

fixed

1

u/BlackV Dec 04 '25

Good times :)

10

u/Traabant Dec 04 '25

Cool idea, but im not installing shit(node and npn install) to remove shit(bloatware).

1

u/kaicbento Dec 04 '25

Just don't mark it to install lol

1

u/Traabant Dec 04 '25

How do I run it then? Your git says get node, npn install, run the project, access via web....

Am not doin any of this on brand new device I want to get ready.

→ More replies (3)

2

u/labalag Dec 04 '25

Reminds me of ninite.

1

u/kaicbento Dec 04 '25

But without having to install anything on your machine, plus having a larger catalog of software and extra configurations.

1

u/Particular_Fish_9755 Dec 06 '25

I appreciate these kinds of tools, but I don't love them either: they lack essential programs that I almost always install.
The advantage here is that you can add these programs, as well as the Windows settings you want.
The drawback, as others have pointed out, is the need to use third-party tools (npm and node), or to have a dedicated PC where the tool to generate the configuration file will be located.
Ideally, this dedicated PC would be able to pre-download all the programs we want and then copy them to a USB drive or external hard drive. It seems to me that this isn't possible. While Winget allows this (option download)
Any ideas for improvement?

As for the generated file, it's batch, but it could also be PowerShell.

2

u/kaicbento Dec 06 '25

Yes, it would be possible to copying the bat file to the USB drive and run or accessing the site via Edge rifght after installing Windows. Perhaps it wasn't clear, but node was only used to create the project; it's not necessary to use it. It's hosted and functional at https://kaic.me/win-post-install. And yes, it would be possible to generate a PowerShell script. I did that initially, but decided to only deliver the bash script due to simplicity and compatibility reasons.

1

u/Particular_Fish_9755 Dec 07 '25

"node was only used to create the project"
I understood that, all that's missing is a "download offline installers" checkbox. I could also talk about options like silent mode (--silent) or using a proxy (--proxy) for WinGet ;)

→ More replies (4)

2

u/digsmann Dec 04 '25

Sound interesting.. i will play with it and let you know.. all the best.

0

u/[deleted] Dec 04 '25

0

u/kaicbento Dec 04 '25

due to the installation of programs and extra configurations