Automating installation rename optical and SSD/HDD during post install

Page 3 of 3 FirstFirst 123

  1. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #21

    Sounds good. Fragile perhaps, but good
      My Computers


  2. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #22

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

    FWIW.
      My Computer


  3. Posts : 425
    Windows 10
    Thread Starter
       #23

    Compumind said:
    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 Computer


  4. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #24

    Wobitancrawfodi said:
    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 Computer


  5. Posts : 1,750
    Windows 10 Pro
       #25

    Wobitancrawfodi said:

    • 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 Computers


  6. Posts : 425
    Windows 10
    Thread Starter
       #26

    x509 said:
    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 Computer


  7. Posts : 1,750
    Windows 10 Pro
       #27

    Wobitancrawfodi said:
    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 Computers


  8. Posts : 425
    Windows 10
    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; 12 Sep 2019 at 22:24.
      My Computer


  9. Posts : 9,765
    Mac OS Catalina
       #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 Computer


  10. Posts : 425
    Windows 10
    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 Computer


 

  Related Discussions
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 23:45.
Find Us




Windows 10 Forums