Automating installation rename optical and SSD/HDD during post install

Page 3 of 3 FirstFirst 123
  1. Ztruker's Avatar
    Posts : 8,817
    Windows 10 Pro X64 1903 18362.295
       #21

    Sounds good. Fragile perhaps, but good
      My ComputersSystem Spec

  2. Compumind's Avatar
    Posts : 1,309
    Windows 10 Pro x64, Various Linux Builds, Internet Security Specialty.
       #22

    I would like to see this custom code that the OP wrote.

    FWIW.
      My ComputerSystem Spec


  3. Posts : 48
    Windows 10 x64 1809
    Thread Starter
       #23

    Compumind said: View Post
    I would like to see this custom code that the OP wrote.
    Happy to share when I've completed and tested it. But it won't be in the next day or so.
      My ComputerSystem Spec

  4. Compumind's Avatar
    Posts : 1,309
    Windows 10 Pro x64, Various Linux Builds, Internet Security Specialty.
       #24

    Wobitancrawfodi said: View Post
    Happy to share when I've completed and tested it. But it won't be in the next day or so.
    I would appreciate that. Thank you.
      My ComputerSystem Spec

  5. x509's Avatar
    Posts : 500
    Windows 10 Pro
       #25

    Wobitancrawfodi said: View Post

    • I then run a huge script that customizes windows settings, installs programs and does a million other things. This script expects specific drives to be in place because the script does several restores. I ALWAYS do clean installs, never in place upgrades.



    At that point I can then use set up complete or autounattend.xml and then there is ZERO manual intervention in the installation process. This turns a 6 hour job into a 5 minute automated process.

    My script automates every aspect of the post installation process of Windows (OOBE and beyond), installation of games and programs, Group Policy settings, registry tweaks, scheduled tasks etc. The only reason it's not totally unattended (or "Automated" as I call it), is because I have to manually intervene to change drive letters.
    Wow. A script that automates every aspect of the post-install process. Any chance that you could be persuaded to post this script, and explain how you built it up.
      My ComputersSystem Spec


  6. Posts : 48
    Windows 10 x64 1809
    Thread Starter
       #26

    x509 said: View Post
    Wow. A script that automates every aspect of the post-install process. Any chance that you could be persuaded to post this script, and explain how you built it up.
    Absolutely. But I wouldn't say "Every aspect", maybe very close :)

    It needs some "anonymizing" before I post it, but happy to share. If it helps someone else that's great.

    Should give disclaimer though - It's very personal to my environment so it may not suit other people;s needs, but I'm sure there'll be stuff in the that might be useful to others.

    Let me finish off the drive re-assignment script I'm working on then I'll post them both.
      My ComputerSystem Spec


  7. x509's Avatar
    Posts : 500
    Windows 10 Pro
       #27

    Wobitancrawfodi said: View Post
    Absolutely. But I wouldn't say "Every aspect", maybe very close :)

    It needs some "anonymizing" before I post it, but happy to share. If it helps someone else that's great.

    Should give disclaimer though - It's very personal to my environment so it may not suit other people;s needs, but I'm sure there'll be stuff in the that might be useful to others.

    Let me finish off the drive re-assignment script I'm working on then I'll post them both.
    Wobitancrawfodi, you Da Man. Looking forward to your posts.

    Maybe the gurus for this forum will even use your posts to create a tutorial on how to create and modify such scripts.
      My ComputersSystem Spec


  8. Posts : 48
    Windows 10 x64 1809
    Thread Starter
       #28

    Ok, here they are.

    Disclaimers
    1. If you run either of these on your computers they WILL break your computers.
    2. Many people will be offended at the extremes I have gone to to harden Windows. I respect your point of view, but please don't respond to commands in these scripts.
    3. They are provided as is for reference purpose only.
    4. I am aware of setupcomplete.cmd and autounattend.xml. I may merge my scripts with those at some point in the future
    5. Some text has been replaced with xxxxxx, and server names have been set to generic names server and server1
    6. I have not uploaded all registry files. As I said, this is for reference purposes only so that you might get some ideas
    7. I do not think gurus from this forum will create tutorials for how to create these scripts - it's basic batch programming with various ideas taken from dozens of websites. There is nothing earth shattering about these scripts.
    8. More testing is required to ensure there are no bugs, and some sections are incomplete as this is a work in progress.

    There are some comments with links to sites where some of the tweaks came from. Otherwise, this was experimentation, 2 years of searching google and various security websites, such as bleepingcomputer.com

    If you get some value from it. Great.

    Tanya

    PostInstall.rar
    Last edited by Wobitancrawfodi; 1 Week Ago at 22:24.
      My ComputerSystem Spec

  9. bro67's Avatar
    Posts : 7,349
    Mac OS Mojave
       #29

    This really needs to be done in the registry since renaming a removable storage device without it being inserted and then inserting media can cause the drive letter to change for each different UUID. It comes down to how the kernel of the OS that is being used has been created to read drive info from the BIOs and controller chipsets.
      My ComputersSystem Spec


  10. Posts : 48
    Windows 10 x64 1809
    Thread Starter
       #30

    The drive has to be inserted for this to work
    If you have a simpler way to rename a drive, then please do share.
    The original post was "what's a simple way to rename a drive from command line". No one was able to come up with anything across 4 forums sites, so this is what I ended up with.
      My ComputerSystem Spec


 
Page 3 of 3 FirstFirst 123

Related Threads
Solved Optical drive will not install in Drivers and Hardware
Toshiba Satellite laptop. New problem in the last few days. Windows 10 version 1809. Trying to send backup data to a flash drive, I noticed that the flash drive was labeled as 'D' instead of 'E' . Went to device manager, cd/dvd drive and saw this...
i just reinstalled windows and on my old install i had all my user profiles go to the e drive and not the c on this new install i want to do the same thing however i cannot rename the old user directory to users-old as it will cause explorer.exe...
Hi all, I'm sure this question has been asked multiple times, but it seems this forum is active, so hopefully someone can help me! I just ordered Windows 10 off newegg.com for a custom gaming PC i'm building. I'm not sure if its coming as a...
Solved Automating Password sign in in User Accounts and Family Safety
Using the "Netplwiz" in the Run box, I was able to automate the sign in password upon initially booting up my machine. When I first start up my machine, it immediately goes to my desktop without asking for the password. So far, so good. But when...
So I went to Microcenter and bought a Windows 10 Pro OEM version and it won't load at all on optical player. I have secure boot disabled and the keys are not installed either. For troubleshooting I have tried to use a different computer with a...
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 13:02.
Find Us