From 6fd0d7171f82c1c4b743da1a750178ddac435aa0 Mon Sep 17 00:00:00 2001 From: Eugene Amos Date: Fri, 10 Oct 2025 15:50:32 -0700 Subject: [PATCH] Updating README.md --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 52 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 053ee5d..a4782d9 100644 --- a/README.md +++ b/README.md @@ -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, you’ll 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, you’ll 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: - - Extract your backup - - Recreate DSNs - - Import registry keys - - Tell you which drivers are missing (with clickable download links) +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` -Example output: +2. Copy your `ODBC_Backup.zip` file from the old computer into: + + ``` + C:\ODBC_Migration\ + ``` -``` -=== 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 -``` +3. **Right-click the script folder** → choose **“Open in Terminal”** + or **“Open PowerShell window here”** -4. Install missing drivers if needed. - Then re-run `restore-ODBC.ps1` one more time (safe to run twice). +4. In the PowerShell window, type: + + ```powershell + .\restore-ODBC.ps1 + ``` + +5. The script will: + + - Extract your backup + - Import registry settings + - Recreate DSNs + - List missing drivers (with download links) + +🟢 **Tip:** +Keep the PowerShell window open until the script finishes — +you’ll see messages like “Added DSN…” or “Missing ODBC Drivers Detected”. ---