- Shopfloor PC type menu (CMM, WaxAndTrace, Keyence, Genspect, Display, Standard) - Baseline scripts: OpenText CSF, Start Menu shortcuts, network/WinRM, power/display - Standard type: eDNC + MarkZebra with 64-bit path mirroring - CMM type: Hexagon CLM Tools, PC-DMIS 2016/2019 R2 - Display sub-type: Lobby vs Dashboard - Webapp: enrollment management, image config editor, UI refresh - Upload-Image.ps1: robocopy MCL cache to PXE server - Download-Drivers.ps1: Dell driver download pipeline - Slim Blancco GRUB EFI (10MB -> 660KB) for old hardware compat - Shopfloor display imaging guide docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
1.1 KiB
PowerShell
25 lines
1.1 KiB
PowerShell
# 05-PowerAndDisplay.ps1 — Shopfloor power plan and display settings (baseline)
|
|
|
|
# --- Set display timeout to Never (0 = never) on AC and DC ---
|
|
powercfg /change monitor-timeout-ac 0
|
|
powercfg /change monitor-timeout-dc 0
|
|
powercfg /change standby-timeout-ac 0
|
|
powercfg /change standby-timeout-dc 0
|
|
Write-Host "Power: display and standby set to Never."
|
|
|
|
# --- Set High Performance power plan ---
|
|
$highPerf = powercfg /list | Select-String "High performance"
|
|
if ($highPerf -match "([a-f0-9-]{36})") {
|
|
powercfg /setactive $Matches[1]
|
|
Write-Host "Power plan set to High Performance."
|
|
} else {
|
|
Write-Host "High Performance plan not found, using current plan."
|
|
}
|
|
|
|
# --- Disable lock screen timeout (screen saver) ---
|
|
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name ScreenSaveActive -Value "0" -Force
|
|
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name ScreenSaveTimeOut -Value "0" -Force
|
|
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "SCRNSAVE.EXE" -Value "" -Force
|
|
Write-Host "Screen saver set to None and disabled."
|
|
|