- # Change resolution for both monitors using NirCmd
- # $NirCmdPath = "C:\nircmd-x64\nircmdc.exe"
- # Monitor 1: 2560x1440 @ 75Hz
- C:\nircmd-x64\nircmdc.exe setdisplay monitor:0 2560 1440 32 75
- # Monitor 1: 1920x1080 @ 60Hz
- # C:\nircmd-x64\nircmdc.exe setdisplay monitor:0 1920 1080 32 75
- # Monitor 2: 1920x1200 @ 60Hz
- C:\nircmd-x64\nircmdc.exe setdisplay monitor:1 1920 1200 32 60
- # Log execution time
- "Executed at: $(Get-Date)" | Out-File "C:\Scripts\NirCMDc.txt" -Append
- # & "C:\Program Files\Performance\nircmd-x64\nircmdc.exe" setdisplay monitor:0 2560 1440 32 75
- # & "C:\Program Files\Performance\nircmd-x64\nircmdc.exe" setdisplay monitor:1 1920 1200 32 60
- # C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\Scripts\BackTo1440.ps1"
Recent Pastes