- Disable all power-saving features in BIOS/UEFI settings.
- Set a high-performance power plan in Windows:
Right-click on 'Power' icon in taskbar > 'Choose what the power button does' > 'Change settings that are currently unavailable'
#!/bin/bash | |
# Check if the correct number of arguments is provided | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: $0 <hostname> <IP address>" | |
exit 1 | |
fi | |
HOSTNAME=$1 | |
IP=$2 |
Right-click on 'Power' icon in taskbar > 'Choose what the power button does' > 'Change settings that are currently unavailable'