Mounting an External Drive (Windows)
If a failed Windows Server still has intact drives, our technicians can attach them to your new Windows Server. This guide shows how to access the NTFS partitions and transfer files, IIS sites and SQL Server databases.
Important — follow this order: Install the operating system on the new server completely before letting us know the old drives can be connected. If the drives are attached before the OS installation, the installer may detect the wrong disks and irreversibly overwrite the old data.
Overview
| Phase | What happens |
|---|---|
| 1. Detect the drive | Windows detects the new drive automatically or via Disk Management |
| 2. Assign drive letters | Assign drive letters to the old drive's partitions |
| 3. Fix permissions | Take ownership of locked system folders from the old installation |
| 4. Transfer data | Copy files, IIS config, and databases to the new server |
Step 1: Detect and bring the drive online
Open Disk Management via Start → Run → diskmgmt.msc. The new drive appears in the lower list. If it shows as Offline, right-click it and select Online.
Replace 1 with the actual disk number from the output.
Step 2: Assign drive letters
Via Disk Management
Right-click a partition on the new drive and select Change Drive Letter and Paths → Add. Assign a free letter — e.g. D: or E:.
Via diskpart
Step 3: Take ownership of system folders
takeown /r works recursively and may take a few minutes on large directories.
Step 4: Copy web files and configuration
Copy web files (IIS)
Back up the IIS configuration
The IIS configuration of the old installation is stored in applicationHost.config. Copy it for reference and recreate sites, bindings and application pools on the new server — do not overwrite the new server's file:
Copy user directories
Step 5: Migrate SQL Server databases
MSSQL16 stands for SQL Server 2022 — adjust the folder name to your version and instance. Attach the copied database files in SQL Server Management Studio (SSMS): Databases → Right-click → Attach and select the .mdf file. Or via T-SQL:
Only attach SQL Server database files if the new server runs the same or a newer SQL Server version than the old one. Attaching to an older version is not possible.
Step 6: Check services and settings
iisreset /startreg load HKLM\OLD_SOFTWARE D:\Windows\System32\config\SOFTWARE — unload it after exporting with reg unload HKLM\OLD_SOFTWAREStep 7: Import SSL certificates
If the old certificates are available as a .pfx file, import them via PowerShell:
Assign the imported certificate in IIS: IIS → Website → Bindings → HTTPS → Select certificate.