Updating README.md
This commit is contained in:
70
README.md
70
README.md
@@ -34,38 +34,72 @@ This kit:
|
|||||||
|
|
||||||
## 📤 Step 1 — Backup (Old Computer)
|
## 📤 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
|
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)
|
## 📥 Step 2 — Restore (New Computer)
|
||||||
|
|
||||||
1. Copy the `ODBC_Backup.zip` file to `C:\ODBC_Migration\`
|
1. On the new computer, **create a folder** again (e.g. `C:\ODBC_Migration_Scripts`)
|
||||||
2. **Right-click** `restore-ODBC.ps1` → **Run with PowerShell (Admin)**
|
and place both files inside:
|
||||||
3. The script will:
|
|
||||||
|
- `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
|
- Extract your backup
|
||||||
|
- Import registry settings
|
||||||
- Recreate DSNs
|
- Recreate DSNs
|
||||||
- Import registry keys
|
- List missing drivers (with download links)
|
||||||
- Tell you which drivers are missing (with clickable download links)
|
|
||||||
|
|
||||||
Example output:
|
🟢 **Tip:**
|
||||||
|
Keep the PowerShell window open until the script finishes —
|
||||||
```
|
you’ll see messages like “Added DSN…” or “Missing ODBC Drivers Detected”.
|
||||||
=== 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).
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user