4.2 KiB
4.2 KiB
Glaztech PDF Fix - Quick Reference Card
Common Commands
Run on Single Computer (Local)
.\Fix-PDFPreview-Glaztech.ps1
Deploy to Multiple Computers (Remote)
# 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
.\Deploy-PDFFix-BulkRemote.ps1 -UseGuruRMM
# Output: GuruRMM-Glaztech-PDF-Fix.ps1
Add File Servers
.\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
.\Fix-PDFPreview-Glaztech.ps1 -UnblockPaths "\\fileserver\shared","C:\Data"
Verification Commands
Check Log
Get-Content C:\Temp\Glaztech-PDF-Fix.log
Verify Zone Configuration
# 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
$File = "\\server\share\document.pdf"
Get-Item $File -Stream Zone.Identifier -ErrorAction SilentlyContinue
# No output = file is unblocked
Test PDF Preview
# Open Explorer to network share
explorer "\\fileserver\documents"
# Enable Preview Pane: View → Preview Pane
# Select a PDF - should preview
Troubleshooting Commands
Restart Explorer
Stop-Process -Name explorer -Force
Manually Unblock Single File
Unblock-File "\\server\share\file.pdf"
Manually Unblock All PDFs in Folder
Get-ChildItem "\\server\share" -Filter "*.pdf" -Recurse | Unblock-File
Enable PowerShell Remoting
Enable-PSRemoting -Force
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" -Force
Force GPO Update
gpupdate /force
gpresult /H C:\Temp\gpresult.html
GuruRMM Deployment
-
Generate script:
.\Deploy-PDFFix-BulkRemote.ps1 -UseGuruRMM -
Upload to GuruRMM:
- Task Type: PowerShell
- Target: Glaztech Industries (d857708c-5713-4ee5-a314-679f86d2f9f9)
- Run As: SYSTEM
- Timeout: 5 minutes
-
Execute and monitor results
GPO Deployment
See: GPO-Configuration-Guide.md
Quick Steps:
- Create GPO: "Glaztech - PDF Preview Fix"
- Add sites to Intranet Zone:
*.glaztech.com192.168.0.*through192.168.9.*
- Disable SmartScreen for Intranet (Zone 1, value 2702 = 0)
- Link GPO to computer OUs
- 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.comto 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
- Scripts created
- GPO guide created
- 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.