!!! Don't forget to change local administrator password (now it is qwerty-123) after deployment !!!
On every windows machine this script does:
- Map specified network share as local disk Z:
- Takes Z:\inv-numbers.txt file with inventory numbers as input (see example of inv-numbers.txt here in main project folder).
- Rename current Windows machine according to inventory number from Z:\inv-numbers.txt file. (If inventory number is 010203 Windows system name will be I010203).
- Write in file Z:\new-pc-name.txt string "mac-address pc-name" info (Ex. I010203 00-BB-CC-88-77-55).
- Store hardware info for every system in html-file named as machine name (ex. I010203.html). All in automode, no user interaction required. Better use this script for mass unattend deployment of windows OS.
Part I. Preparing Image
- Install Windows 10 or Windows 7 and all necesary software.
- Use sysprep to prepare your image for deployment (Be aware that you need to remove user with name "user" in your image in audit sysprep mode since Unattend.xml stored in this repository create such user during installation process).
- Reboot and load any Preinstallation Enviromnent of your choice (Strelec, HirenBCD or their Microsoft analog).
- Put Unattend.xml in root of system drive with your Windows OS (Usually it is disk C:)
- Put autoren.bat and SetupComplete.cmd in Windows/Setup/Scripts (If "Scripts" folder does not exist, make one).
- Reboot, boot from USB or network and load any Imaging Software of your choice (Clonezilla, Acronis, DISM, etc.)
- Create disk image of your yet undeployed Microsoft OS and store it anywhere you like (Local Disk, Network Share, etc.)
Part II. Preparing Network Share
- Create network share available so that Windows machines from deployed image could reach share and map using "net use" command. (You can change share name and path in script text).
- In this share create file inv-numbers.txt and put there any list of names for new PCs in STRING divided by spaces, like 001 002 003 (See inv-numbers.txt here as example). Be aware that in output file script will add capital letter "I" before theese names, so that PCs will be renamed like I001, I002, I003, etc. You can edit script to avoid it, just remember that Windows PC name can not contain digits only.
- Also put in this folder file with Windows 10 and MS Office 13 key (See example w10-mso13-key.txt in this project files).
Part III. Deployng Image and getting results
- Deploy captured in Part I image on desired amount of PCs using Clonezilla Lite Server or any mass deployment software of your choice. (Make sure that you have internet connection for each PC, since without internet connection autounattend will not work in silent mode and ask for network setup).
- Just restart macnines manually or set your software to autoreboot.
- If everything were set up properly and with help of almighty Korgoth you end up with new-pc-names.txt file where will be stored "pc-name mac-address" strings like "I001 00-03-7F-50-5C-0D"
- Also for each PC you will have html-files like I010203.html with system name and main hardware info on your machines represented in form of simple tables readable by any browser.