# Set Display Timeout to Never (0 minutes)
powercfg /change monitor-timeout-ac 0
powercfg /change monitor-timeout-dc 0

# Set Sleep Timeout to Never (0 minutes)
powercfg /change standby-timeout-ac 0
powercfg /change standby-timeout-dc 0

# Display a message confirming the settings have been applied
Write-Host "Power settings updated: Screen timeout and Sleep timeout set to 'Never'."
