1
0

Updating README.md

This commit is contained in:
2025-10-10 15:50:32 -07:00
parent f5d8dac22c
commit 6fd0d7171f

View File

@@ -34,38 +34,72 @@ This kit:
## 📤 Step 1 — Backup (Old Computer)
1. **Right-click** `export-ODBC.ps1`**Run with PowerShell (Admin)**
1. **Create a new folder** anywhere on your computer, for example:
`C:\ODBC_Migration_Scripts`
2. Wait until you see:
2. Save both of these files into that folder:
- `export-ODBC.ps1`
- `restore-ODBC.ps1`
3. **Right-click the folder** in File Explorer and choose:
**“Open in Terminal”** or **“Open PowerShell window here”**
4. In the PowerShell window that opens, type:
```powershell
.\export-ODBC.ps1
```
(If PowerShell asks about permissions, allow it by typing `Y` when prompted.)
5. When the script finishes, youll see a message like:
```
Export complete. ZIP created at: C:\ODBC_Migration\ODBC_Backup.zip
```
3. Copy that `ODBC_Backup.zip` file to a USB drive or cloud folder.
6. Copy that `ODBC_Backup.zip` file to a USB drive or cloud folder.
🟢 **Tip:**
Running the script this way keeps the PowerShell window open —
so if anything goes wrong, youll see the exact error message.
---
## 📥 Step 2 — Restore (New Computer)
1. Copy the `ODBC_Backup.zip` file to `C:\ODBC_Migration\`
2. **Right-click** `restore-ODBC.ps1`**Run with PowerShell (Admin)**
3. The script will:
1. On the new computer, **create a folder** again (e.g. `C:\ODBC_Migration_Scripts`)
and place both files inside:
- `export-ODBC.ps1`
- `restore-ODBC.ps1`
2. Copy your `ODBC_Backup.zip` file from the old computer into:
```
C:\ODBC_Migration\
```
3. **Right-click the script folder** → choose **“Open in Terminal”**
or **“Open PowerShell window here”**
4. In the PowerShell window, type:
```powershell
.\restore-ODBC.ps1
```
5. The script will:
- Extract your backup
- Import registry settings
- Recreate DSNs
- Import registry keys
- Tell you which drivers are missing (with clickable download links)
- List missing drivers (with download links)
Example output:
```
=== Missing ODBC Drivers Detected ===
- ODBC Driver 18 for SQL Server (64-bit)
Download: https://learn.microsoft.com/sql/connect/odbc/download-odbc-driver-for-sql-server
```
4. Install missing drivers if needed.
Then re-run `restore-ODBC.ps1` one more time (safe to run twice).
🟢 **Tip:**
Keep the PowerShell window open until the script finishes —
youll see messages like “Added DSN…” or “Missing ODBC Drivers Detected”.
---