# Glaztech PDF Fix - Quick Reference Card ## Common Commands ### Run on Single Computer (Local) ```powershell .\Fix-PDFPreview-Glaztech.ps1 ``` ### Deploy to Multiple Computers (Remote) ```powershell # From list .\Deploy-PDFFix-BulkRemote.ps1 -ComputerNames "PC001","PC002","PC003" # From file .\Deploy-PDFFix-BulkRemote.ps1 -ComputerNames (Get-Content computers.txt) # All AD computers $Computers = Get-ADComputer -Filter * | Select -ExpandProperty Name .\Deploy-PDFFix-BulkRemote.ps1 -ComputerNames $Computers ``` ### Generate GuruRMM Script ```powershell .\Deploy-PDFFix-BulkRemote.ps1 -UseGuruRMM # Output: GuruRMM-Glaztech-PDF-Fix.ps1 ``` ### Add File Servers ```powershell .\Fix-PDFPreview-Glaztech.ps1 -ServerNames "fileserver01","192.168.1.50" # Bulk deployment with servers .\Deploy-PDFFix-BulkRemote.ps1 -ComputerNames $Computers -ServerNames "fileserver01","192.168.1.50" ``` ### Add Custom Paths ```powershell .\Fix-PDFPreview-Glaztech.ps1 -UnblockPaths "\\fileserver\shared","C:\Data" ``` --- ## Verification Commands ### Check Log ```powershell Get-Content C:\Temp\Glaztech-PDF-Fix.log ``` ### Verify Zone Configuration ```powershell # Check Intranet zone Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" # Check SmartScreen (should be 0 = disabled for Intranet) Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1" -Name "2702" ``` ### Check if File is Blocked ```powershell $File = "\\server\share\document.pdf" Get-Item $File -Stream Zone.Identifier -ErrorAction SilentlyContinue # No output = file is unblocked ``` ### Test PDF Preview ```powershell # Open Explorer to network share explorer "\\fileserver\documents" # Enable Preview Pane: View → Preview Pane # Select a PDF - should preview ``` --- ## Troubleshooting Commands ### Restart Explorer ```powershell Stop-Process -Name explorer -Force ``` ### Manually Unblock Single File ```powershell Unblock-File "\\server\share\file.pdf" ``` ### Manually Unblock All PDFs in Folder ```powershell Get-ChildItem "\\server\share" -Filter "*.pdf" -Recurse | Unblock-File ``` ### Enable PowerShell Remoting ```powershell Enable-PSRemoting -Force Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" -Force ``` ### Force GPO Update ```powershell gpupdate /force gpresult /H C:\Temp\gpresult.html ``` --- ## GuruRMM Deployment 1. Generate script: ```powershell .\Deploy-PDFFix-BulkRemote.ps1 -UseGuruRMM ``` 2. Upload to GuruRMM: - Task Type: PowerShell - Target: Glaztech Industries (d857708c-5713-4ee5-a314-679f86d2f9f9) - Run As: SYSTEM - Timeout: 5 minutes 3. Execute and monitor results --- ## GPO Deployment See: `GPO-Configuration-Guide.md` **Quick Steps:** 1. Create GPO: "Glaztech - PDF Preview Fix" 2. Add sites to Intranet Zone: - `*.glaztech.com` - `192.168.0.*` through `192.168.9.*` 3. Disable SmartScreen for Intranet (Zone 1, value 2702 = 0) 4. Link GPO to computer OUs 5. Force update: `gpupdate /force` --- ## Files | File | Purpose | |------|---------| | `Fix-PDFPreview-Glaztech.ps1` | Main script (run on individual computer) | | `Deploy-PDFFix-BulkRemote.ps1` | Bulk deployment (run from admin workstation) | | `GPO-Configuration-Guide.md` | Group Policy setup instructions | | `README.md` | Complete documentation | | `QUICK-REFERENCE.md` | This file (cheat sheet) | --- ## Default Behavior Without parameters, the script: - ✅ Scans Desktop, Downloads, Documents - ✅ Unblocks all PDF files found - ✅ Adds `glaztech.com` to Intranet zone - ✅ Adds `192.168.0.*` - `192.168.9.*` to Intranet zone - ✅ Disables SmartScreen for Intranet zone - ✅ Enables PDF preview handlers - ✅ Creates log: `C:\Temp\Glaztech-PDF-Fix.log` --- ## Support **GuruRMM Client ID:** d857708c-5713-4ee5-a314-679f86d2f9f9 **Domain:** glaztech.com **Networks:** 192.168.0-9.0/24 **Script Location:** `D:\ClaudeTools\clients\glaztech\` --- ## Status Checklist - [x] Scripts created - [x] GPO guide created - [x] GuruRMM deployment option available - [ ] File server names/IPs pending (waiting on user) - [ ] Pilot testing (1-5 computers) - [ ] Bulk deployment - [ ] GPO configuration - [ ] Verification complete **Next:** Get file server details from Glaztech IT, then update script parameters.