# Glaztech PDF Fix - READY TO DEPLOY

**Status:** ✅ All scripts configured with Glaztech file server information
**File Server:** \\192.168.8.62\
**Created:** 2026-01-27

---

## Quick Deployment

### Option 1: Deploy via GuruRMM (Recommended for Multiple Computers)

```powershell
cd D:\ClaudeTools\clients\glaztech
.\Deploy-PDFFix-BulkRemote.ps1 -UseGuruRMM
```

This generates: `GuruRMM-Glaztech-PDF-Fix.ps1`

**Upload to GuruRMM:**
- Client: Glaztech Industries
- Client ID: d857708c-5713-4ee5-a314-679f86d2f9f9
- Site: SLC - Salt Lake City
- Task Type: PowerShell Script
- Run As: SYSTEM
- Timeout: 5 minutes

### Option 2: Test on Single Computer First

```powershell
# Copy to target computer and run as Administrator:
.\Fix-PDFPreview-Glaztech-UPDATED.ps1
```

### Option 3: Deploy to Multiple Computers via PowerShell Remoting

```powershell
$Computers = @("GLAZ-PC001", "GLAZ-PC002", "GLAZ-PC003")
.\Deploy-PDFFix-BulkRemote.ps1 -ComputerNames $Computers
```

---

## What's Configured

### File Server
- **IP:** 192.168.8.62
- **Automatically scanned paths:**
  - \\192.168.8.62\alb_patterns
  - \\192.168.8.62\boi_patterns
  - \\192.168.8.62\brl_patterns
  - \\192.168.8.62\den_patterns
  - \\192.168.8.62\elp_patterns
  - \\192.168.8.62\emails
  - \\192.168.8.62\ftp_brl
  - \\192.168.8.62\ftp_shp
  - \\192.168.8.62\ftp_slc
  - \\192.168.8.62\GeneReport
  - \\192.168.8.62\Graphics
  - \\192.168.8.62\gt_invoice
  - \\192.168.8.62\Logistics
  - \\192.168.8.62\phx_patterns
  - \\192.168.8.62\reports
  - \\192.168.8.62\shp_patterns
  - \\192.168.8.62\slc_patterns
  - \\192.168.8.62\sql_backup
  - \\192.168.8.62\sql_jobs
  - \\192.168.8.62\tuc_patterns
  - \\192.168.8.62\vs_code

### Network Ranges
- glaztech.com domain
- 192.168.0.* through 192.168.9.* (all 10 sites)
- 192.168.8.62 (file server - explicitly added)

### Local Paths
- User Desktop
- User Downloads
- User Documents

---

## What the Script Does

1. ✅ **Unblocks PDFs** - Scans all configured paths and removes Zone.Identifier
2. ✅ **Trusts file server** - Adds 192.168.8.62 to Intranet security zone
3. ✅ **Trusts networks** - Adds all Glaztech IP ranges to Intranet zone
4. ✅ **Disables SmartScreen** - For Glaztech internal resources only
5. ✅ **Enables PDF preview** - Ensures preview handlers are active
6. ✅ **Creates log** - C:\Temp\Glaztech-PDF-Fix.log on each computer

---

## Recommended Pilot Test

Before mass deployment, test on 2-3 computers:

```powershell
# Test computers (adjust names as needed)
$TestComputers = @("GLAZ-PC001", "GLAZ-PC002")
.\Deploy-PDFFix-BulkRemote.ps1 -ComputerNames $TestComputers
```

**Verify on test computers:**
1. Open File Explorer
2. Navigate to: \\192.168.8.62\reports (or any folder with PDFs)
3. Select a PDF file
4. Enable Preview Pane: View → Preview Pane
5. **Expected:** PDF displays in preview pane
6. Check log: `C:\Temp\Glaztech-PDF-Fix.log`

---

## After Successful Pilot

### Deploy to All Computers

**Method A: GuruRMM (Best for large deployment)**
```powershell
.\Deploy-PDFFix-BulkRemote.ps1 -UseGuruRMM
# Upload generated script to GuruRMM
# Schedule/execute on all Glaztech computers
```

**Method B: PowerShell (Good for AD environments)**
```powershell
# Get all Glaztech computers from Active Directory
$AllComputers = Get-ADComputer -Filter {OperatingSystem -like "*Windows 10*" -or OperatingSystem -like "*Windows 11*"} -SearchBase "DC=glaztech,DC=com" | Select -ExpandProperty Name

# Deploy to all
.\Deploy-PDFFix-BulkRemote.ps1 -ComputerNames $AllComputers
```

**Method C: Site-by-Site (Controlled rollout)**
```powershell
# Site 1
$Site1 = Get-ADComputer -Filter * -SearchBase "OU=Site1,DC=glaztech,DC=com" | Select -ExpandProperty Name
.\Deploy-PDFFix-BulkRemote.ps1 -ComputerNames $Site1

# Verify, then continue to Site 2, 3, etc.
```

---

## Verification Commands

### Check if script ran successfully
```powershell
# View log on remote computer
Invoke-Command -ComputerName "GLAZ-PC001" -ScriptBlock {
    Get-Content C:\Temp\Glaztech-PDF-Fix.log -Tail 20
}
```

### Check if file server is trusted
```powershell
# On local or remote computer
Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\EscDomains\192.168.8.62" -ErrorAction SilentlyContinue
# Should return: file = 1
```

### Test PDF preview manually
```powershell
# Open file server in Explorer
explorer "\\192.168.8.62\reports"
# Enable Preview Pane, select PDF, verify preview works
```

---

## Files Available

| File | Purpose | Status |
|------|---------|--------|
| `Fix-PDFPreview-Glaztech-UPDATED.ps1` | Main fix script (use this one) | ✅ Ready |
| `Deploy-PDFFix-BulkRemote.ps1` | Bulk deployment script | ✅ Ready |
| `GPO-Configuration-Guide.md` | Group Policy setup guide | ✅ Ready |
| `README.md` | Complete documentation | ✅ Ready |
| `QUICK-REFERENCE.md` | Command cheat sheet | ✅ Ready |
| `DEPLOYMENT-READY.md` | This file | ✅ Ready |

---

## Support

**GuruRMM Access:**
- Client ID: d857708c-5713-4ee5-a314-679f86d2f9f9
- Site: SLC - Salt Lake City
- Site ID: 290bd2ea-4af5-49c6-8863-c6d58c5a55de
- API Key: grmm_Qw64eawPBjnMdwN5UmDGWoPlqwvjM7lI

**Network Details:**
- Domain: glaztech.com
- File Server: \\192.168.8.62\
- Site Networks: 192.168.0-9.0/24

**Script Location:** D:\ClaudeTools\clients\glaztech\

---

## Next Steps

- [ ] Pilot test on 2-3 computers
- [ ] Verify PDF preview works on test computers
- [ ] Review logs for any errors
- [ ] Deploy to all affected computers
- [ ] (Optional) Configure GPO for permanent solution
- [ ] Document which computers were fixed

---

**Ready to deploy! Start with the pilot test, then proceed to full deployment via GuruRMM or PowerShell remoting.**
