POWERSHELL 8
"C:\Scripts\1080p.ps1" By AndrzejL on 25th May 2025 10:37:44 AM
  1. # Change resolution for both monitors using NirCmd
  2. # $NirCmdPath = "C:\nircmd-x64\nircmdc.exe"
  3.  
  4. # Monitor 1: 2560x1440 @ 75Hz
  5. # C:\nircmd-x64\nircmdc.exe setdisplay monitor:0 2560 1440 32 75
  6.  
  7.  
  8. # Monitor 1: 1920x1080 @ 60Hz
  9. C:\nircmd-x64\nircmdc.exe setdisplay monitor:0 1920 1080 32 60
  10.  
  11. # Monitor 2: 1920x1200 @ 60Hz
  12. C:\nircmd-x64\nircmdc.exe setdisplay monitor:1 1920 1200 32 60
  13.  
  14. # Log execution time
  15. "Executed at: $(Get-Date)" | Out-File "C:\Scripts\NirCMDc.txt" -Append
  16.  
  17. # & "C:\Program Files\Performance\nircmd-x64\nircmdc.exe" setdisplay monitor:0 2560 1440 32 75
  18. # & "C:\Program Files\Performance\nircmd-x64\nircmdc.exe" setdisplay monitor:1 1920 1200 32 60
  19. # C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\Scripts\BackTo1440.ps1"

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.