How can I automate these reinstall processes with a bat file?

  1. ertuierrt's Avatar
    Posts : 4
       #1

    How can I automate these reinstall processes with a bat file?


    I really screwed up my computer and I'm having to do a fresh install and I want to automate the process for potential future issues, so I'm writing a bat file.

    I can reinstall most of my programs using chocolately etc.

    I know I can change a lot of the settings using the cmd etc too.

    What I'd like some help knowing how to do is automate a couple of other things:

    Is it possible to enable developer mode and install WSL (Windows Subsystem Layer for Linux).

    Remove default Libraries (I do not use these. They don't make any sense with my workflow and they just clutter things up).

    Install specific programs in which I can only access a downloadable non CMD exe for? (as in, most of the stuff I'm installing using chocolately have been optimized to install through the CLI to some degree)

    After installing a program enter in my license key for it?
      My Computer

  2. dalchina's Avatar
    Posts : 24,274
    Win 10 Pro (1903)
       #2

    Two thoughts:
    1. Use disk imaging routinely as we constantly recommend. That gives you the ability to restore your PC, Windows or a particular disk or partition to a previously working state when things go wrong- even to a new disk or potentially to a new PC. Often avoids clean installs and is relatively painless.

    2. If you need to clean install, then having a disk image lets you automate (as you seek) the process of reinstallation of most programs- often with their licenses- using a version of programs by either Laplink or Easeus.

    Clean install Windows, install and run the program, mount the image and start the process of transferring programs and settings from the disk image.

    Only downside- it's a one-off license fee each time, but a huge time saver. I've used Laplink's program 3 times with 100s of progs, and some 95% success.

    No need to reinvent the wheel.
      My Computers

  3. ertuierrt's Avatar
    Posts : 4
    Thread Starter
       #3

    dalchina said:
    Two thoughts:
    1. Use disk imaging routinely as we constantly recommend. That gives you the ability to restore your PC, Windows or a particular disk or partition to a previously working state when things go wrong- even to a new disk or potentially to a new PC. Often avoids clean installs and is relatively painless.

    2. If you need to clean install, then having a disk image lets you automate (as you seek) the process of reinstallation of most programs- often with their licenses- using a version of programs by either Laplink or Easeus.

    Clean install Windows, install and run the program, mount the image and start the process of transferring programs and settings from the disk image.

    Only downside- it's a one-off license fee each time, but a huge time saver. I've used Laplink's program 3 times with 100s of progs, and some 95% success.

    No need to reinvent the wheel.
    Thanks Dalchina, I intend to do the imaging thing also. I just would like to write a script for this process also because it would be good to have a second back up solution AND because I am very bored by this process of reinstalling stuff so at least taking this as a chance to sharpen my knowledge of bat files etc would be nice. Otherwise I'm going to go crazy with the drudgery.
      My Computer

  4. Samuria's Avatar
    Posts : 4,965
    windows 10
       #4

    Software like nlite does it all for you plus all updates
      My Computer

  5. ertuierrt's Avatar
    Posts : 4
    Thread Starter
       #5

    Samuria said:
    Software like nlite does it all for you plus all updates
    Yeah I know about Ninite but it doesnt' have the level of customization that I can just using a script and Choco. And the difficulty of the two is about the same. Choco can also update stuff too.
      My Computer


 

Related Threads
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:31.
Find Us




Windows 10 Forums