Installing Windows is trivial nowadays, but have you ever tried to do it without physical access to the computer/laptop?
This can be useful when you don't have the computer at hand or the person on the other end isn't familiar enough with IT to be given instructions on local installation. Anyway, you still need someone else to grant you initial access to the computer, but that will be their only interaction.
Warning
This tutorial is provided for informational and educational purposes only. Following these instructions may involve risks, including but not limited to system malfunctions, data loss, security vulnerabilities or other unintended consequences. I make no guarantees about the accuracy, reliability, or safety of the information provided. By using this tutorial, you acknowledge that you do so at your own risk and assume full responsibility for any issues, damages, or losses that may occur. Additionally, I am not liable for the use, misuse, or interpretation of this content. Always back up your data and proceed with caution.
- A free Tailscale account
- A temporary remote access app
- A Windows 10/11 Pro image
- A Windows answer file (
autounattend.xml) - WinNTSetup
- Bootice (included in WinNTSetup)
- MiniTool Partition Wizard
Tailscale is a powerful service that provides secure access between multiple devices and servers in different scenarios, being useful for both personal and commercial use. In this tutorial, it will be used to establish a stable VPN connection between your computer and the remote computer, so that you can RDP connect to the remote computer after the Windows installation is complete. Create your account for free if you don't already have one.
With your account created and Tailscale installed in your computer, go to admin console, then enable device approval and generate an auth key with pre-approved option. Remember to copy and store the generated key in a safe place, as it will no longer be displayed in full.
These steps are required to create a Tailscale installation script that will be run right after Windows installation has finished.
Before making any changes to the remote computer you need to access it first with someone's help, so let's make things easier here. I suggest using Anydesk, but feel free to use any other option you prefer. Ask the other person to install the program on remote computer and access it.
Important
All programs and files listed below should be downloaded on the remote computer.
You'll need a Windows 10/11 Pro image, that could be an entire ISO or just the install.wim or install.esd file if you want to save some download time.
Tip
Just a quick comparison: 6.13 GB ISO vs 3.71 GB ESD, 40% smaller for Windows 11 Pro 24H2.
I suggest you three ways to obtain these files:
- Microsoft software download, only for Windows 11 ISO files.
- You can obtain the
install.wimfile inside thesourcesfolder from that ISO.
- You can obtain the
- file.rg-adguard.net for direct ESD files. Always check for the latest Windows 10/11 build available and download the
CLIENTCONSUMER_RET_x64FRE_xx-xx.esdfile. - https://bit.ly/win-remoto, it's my personal OneDrive share, where you can download a Windows 10/11 ESD file and the other tools listed below.
Important
Make sure to download/install the Pro version, as the Home version doesn't support RDP, which will be used in this tutorial.
Answer files are used to modify Windows installation, allowing to automate steps (like account creation and wifi setup) and do some tweaks. Check this example file and create yours at https://schneegans.de/windows/unattend-generator/.
This site is full of options for modifying your Windows installation, feel free to select what you find interesting but remember to modify the options below:
- User accounts
- Make sure to create at least one Administrator account and set a password to it. Do not leave the password blank because it is required for RDP access.
- System tweaks
- Check "Enable Remote Desktop services (RDP)" option.
- WLAN/Wi-Fi setup
- If the remote computer is connected to the internet via Wi-Fi you'll need to configure this option to re-establish connection after installing Windows.
- Otherwise, check "Skip Wi-Fi configuration" when the remote computer is connected by cable.
- Run custom scripts
- Scripts to run when the first user logs on after Windows has been installed
- Paste the Tailscale install script here. (see a example)
- Scripts to run when the first user logs on after Windows has been installed
WinNTSetup is used to install Windows, you can download it at Mega, Mediafire or Majorgeeks. Always choose the x64 version.
Bootice will be used to edit the BCD where Windows boot entries are stored.
Note
Now that everything is ready, you can continue. Remember to always have a backup of your data.
First of all you have to allocate some disk space for the new OS. It's not possible to install it on top of the existing OS but you can shrink the actual partition for it.
Open disk management and create a new NTFS partition with at least 20 GB.
Here is where you configure the Windows install.
- 1st drop-down: Select the installation image (ISO, WIM or ESD file).
- 2nd drop-down: Select boot partition, usually the first partition of the disk.
- In most cases, it is selected automatically and has a green background in the drop-down list.
- 3rd drop-down: Select the newly created partition.
- Options: Select the Windows version to be installed.
- Unattend: Select the
autounattend.xmlyou made. - (Optional) Drivers: If you have a directory with device drivers (
.inffiles) you can select it here.
- Unattend: Select the
- Mode: Select "Winboot:WINCOPY" or any "Compact" option if you want a Compact OS install. Make sure that it is marked with a green ball.
Click install then click accept in the new window that appears, there's no need to change the default options. Wait till the install ends.
After that, click on the Windows logo below close button and click Bootice.
Time to tell the system to boot on the new Windows next time.
- Open BCD tab and click "Easy mode" button.
- Delete the current Windows entry and leave the new one only.
- Click "Save current system" and reboot.
Now you'll be left "waiting in the dark" while Windows completes the installation.
If everything goes fine Windows will boot up, logon the user created on autounattend.xml and Tailscale install script will start.
You'll see a new entry in Tailscale admin console. Copy that IP and RDP connect using the same account created and you're good to go.
To reclaim the disk space left by the old operating system, you should use third-party disk managers such as MiniTool Partition Wizard Portable.
Download, extract and open partitionwizard.exe. You'll see all partitions on the disk. All you have to do is:
- Delete the old OS partition.
- Extend the actual OS partition with all the unallocated space, click OK.
- Click Aplly, then Yes and Restart Now.
MiniTool will resize Windows partition during reboot and you'll have all disk space for the new OS.
Install all missing drivers, programs and once you have finished, if you're not planning to use it, unnistall Tailscale on remote computer and remove its entry on admin console.