Pending fix, but added better README

This commit is contained in:
jeirmeister 2024-12-09 18:20:41 -08:00
parent a86f47ec39
commit c9bc417a09
2 changed files with 27 additions and 9 deletions

View File

@ -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
**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.

View File

@ -21,7 +21,7 @@ BootTimeExtension = Disable
SpeedStep = Enable
AdaptiveThermalManagementAC = MaximizePerformance
AdaptiveThermalManagementBattery = MaximizePerformance
CPUPowerManagement = Disable
CPUPowerManagement = Enable
OnByAcAttach = Disable
PasswordBeep = Disable
KeyboardBeep = Enable