# Clean ASCII Deployment Scripts ## Problem Solved The original deployment scripts contained Unicode box-drawing characters that cause display issues in Windows Command Prompt, showing as weird characters or question marks. ## Clean Scripts Available ### 1. Deploy-Simple.bat **RECOMMENDED** - **Clean ASCII only** - No Unicode characters - **Minimal output** - Easy to read - **Essential functionality** - Just copies files efficiently - **Small and fast** - 50 lines vs 240+ in original **Usage:** ```batch Deploy-Simple.bat ``` ### 2. Deploy-To-Multiple-PCs-Enhanced-ASCII.bat - **Full-featured version** with ASCII characters only - **Detailed logging** and progress tracking - **Scheduled task creation** - **Same functionality** as original, just clean display ### 3. computers-template.txt - **Clear instructions** for computer list - **Examples** for different PC types - **Copy to computers.txt** and edit ## Quick Start 1. **Copy computers-template.txt to computers.txt** ```batch copy computers-template.txt computers.txt ``` 2. **Edit computers.txt** - Add your target computer names: ``` DESKTOP-ABC123 SHOPFLOOR-PC-01 ENGINEER-WS-02 ``` 3. **Run the simple deployment:** ```batch Deploy-Simple.bat ``` ## What Gets Deployed Files copied to `C:\Temp\AssetCollection\` on each target PC: - Update-PC-CompleteAsset.ps1 (main script) - Get-ShopfloorConfig.ps1 (application detection) - Update-PC-CompleteAsset.bat (batch wrapper) - Update-PC-CompleteAsset-Silent.bat (silent version) ## Execution Options After deployment, run on target PCs: **Option 1: Manual execution** ```batch C:\Temp\AssetCollection\Update-PC-CompleteAsset.bat ``` **Option 2: Silent execution** ```batch C:\Temp\AssetCollection\Update-PC-CompleteAsset-Silent.bat ``` **Option 3: Remote execution with PsExec** ```batch psexec \\COMPUTER -u admin -p password cmd /c "C:\Temp\AssetCollection\Update-PC-CompleteAsset-Silent.bat" ``` ## Requirements - **Network access** to target PCs (admin shares) - **Administrative credentials** for target systems - **Source files** in S:\DT\adata\script\ (or update SOURCE_DIR) - **PowerShell execution policy** set on target PCs ## Troubleshooting **"Access denied" errors:** - Verify admin credentials - Check Windows Firewall settings - Ensure File and Printer Sharing is enabled **"Files not copied" errors:** - Check source directory exists: S:\DT\adata\script\ - Verify network connectivity - Check disk space on targets **"Computer offline" messages:** - Computers are powered off or unreachable - Network connectivity issues - Incorrect computer names in computers.txt ## New Application Detection The updated scripts now include: - **UDC detection** (looks for UDC.exe process) - **CLM detection** (looks for ppdcs.exe process) - **Database integration** via installedapps table - **Machine details display** in web dashboard Only runs on **Shopfloor PCs** - other PC types skip application detection. --- **Clean deployment scripts - No more weird characters!**