- Boot up the computer that will be receiving the image.
- Boot into PXE. This can be done by pressing F12. Once a connection to the DC (WDS Server) is established, press F12 again to pull up a list of WDS Boot Images.
- Select the boot image: “Lite Touch Windows PE (x64)”.
- Microsoft Deployment Toolkit will load up. First, click “Run the Deployment Wizard to install a new Operating System”. Then proceed to connect to the Deployment Share by finding the server/share: \\SERVER01\deploymentshare$\
- Enter Domain Admin credentials.
- Select the desired MDT Task Sequence. The current desired Task Sequence is of Windows 10 Pro full deployment: “Win10Prov1703 2017-08-11 No Metro Apps”. Select Next.
- Keep the current computer name by pressing Next.
- Select “Do not move user data and settings” and press Next.
- Select “Do not restore user data and settings” and press Next.
- Select “No product key is required” and press Next.
- Select the correct Time Zone and press Next.
- When MDT asks to install program, do not select any, as this is already defined in the Task Sequence. Press Next.
- Enter the Administrator password and press Next.
- Select “Do not enable BitLocker for this computer” and press Next.
- Press “Begin”.
- After about 30 minutes, the system will be imaged, and all of the predefined Task Sequences will have been run.
- The only other task that must be manually run is to add the computer to the domain. This will require a reboot.
- Once this is completed, the computer is ready for Active Directory user login.
I created a Windows Task Scheduler event so that at 3:00PM, everyday, it prompts me to run a commit to GitHub. I use Git Bash, so the local file run, is called GitHubPush.sh. It looks like this:
echo "All of my scripts compiled into one repository." >> README.md
git config --global user.email "MY_GITHUB_EMAIL@WEBSERVER.COM"
git config --global user.email
echo "Press Enter to confirm Email Address..."
git add "*.bat"
git add "*.ps1"
git add "*.cmd"
git add "*.vbs"
git commit -m "commit"
git remote add origin https://github.com/my-github-username/scripts.git
git remote -v
git push -u origin master
echo "Press 'Enter' to exit..."
The .sh file can be run on it’s own, but I prefer for Windows Task Scheduler to remember for me. I simply have a one-liner batch file call the .sh file:
git-bash.exe "E:\Dropbox\GitHubPush.sh". This batch file is run as a Scheduled Task in Windows Task Scheduler.