diff --git a/README.md b/README.md index f33a7ed..d811904 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,32 @@ -Usage examples: -powershell +## Using Manage-BiosSettings + +**Load the Function** +```powershell + +# Run PowerShell as Administrator and use this command: +Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process + +# Method 1: Dot source the function +. .\Manage-BiosSettings.ps1 + +# Method 2: Import as module +Import-Module .\Manage-BiosSettings.ps1 -Force +``` + +**Usage Examples** +```powershell # Export current BIOS settings Manage-BiosSettings -Action export -FilePath "current_bios.txt" # Import BIOS settings from file Manage-BiosSettings -Action import -FilePath "new_bios.txt" +``` -This script provides: -Export functionality to save current BIOS settings -Import functionality to apply settings from a file -Error handling and validation -Administrator privilege checking -Status messages for each operation \ No newline at end of file +**Features** +- Export functionality to save current BIOS settings +- Import functionality to apply settings from file +- Error handling and validation +- Administrator privilege checking +- Status messages for each operation + +The `-Force` parameter in the Import-Module command ensures the module is reloaded if it was previously imported. Always run PowerShell as Administrator when using this function. \ No newline at end of file diff --git a/bios/thinkpad-t470.txt b/bios/thinkpad-t470.txt index 97a3176..46855f0 100644 --- a/bios/thinkpad-t470.txt +++ b/bios/thinkpad-t470.txt @@ -21,7 +21,7 @@ BootTimeExtension = Disable SpeedStep = Enable AdaptiveThermalManagementAC = MaximizePerformance AdaptiveThermalManagementBattery = MaximizePerformance -CPUPowerManagement = Disable +CPUPowerManagement = Enable OnByAcAttach = Disable PasswordBeep = Disable KeyboardBeep = Enable