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

  1.    02 Jul 2018 #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 ComputerSystem Spec

  2.    02 Jul 2018 #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 ComputerSystem Spec

  3.    02 Jul 2018 #3

    dalchina said: View Post
    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 ComputerSystem Spec

  4.    02 Jul 2018 #4

    Software like nlite does it all for you plus all updates
      My ComputerSystem Spec

  5.    02 Jul 2018 #5

    Samuria said: View Post
    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 ComputerSystem Spec


 

Related Threads
Hi, I've messed a lot with the pre-installed apps, but now decided to reinstall them. I've deleted everything under C:\Program Files\WindowsApps. Then I copied the same directory from Windows ISO and pasted there. Also I set the folder to...
Automate LOGIN in User Accounts and Family Safety
Is there a way to automate a LOGIN? I often need to login to a large number of pcs. I was wandering if there is a way to do it automatically by connecting an usb. Thanks
Where in the heck do I even start? I know for my steam stuff I have to reinstall the distro packs and stuff so I'd like to be able to install all the needed packs, then run a game exe for 30 seconds minimized and then end the game exe move to the...
Automate login for pop-up window in Browsers and Email
Hello everybody, TL;DR : I need to automate a webpage credential form. I am building a kiosk setup for my workplace and I am running into an obstacle that I cannot seem to overcome. What I have is a set of machines that pulls feeds from a...
Automate system integrity in Software and Apps
The attached script schedules a weekly /RestoreHealth and /scannow execution to maintain file integrity. It runs silently and will only prompt if unable to complete either scan or corrupted files are found. On first run it creates the task to...

Tags for this Thread

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 08:31.
Find Us