Pending fix, but added better README
This commit is contained in:
parent
a86f47ec39
commit
c9bc417a09
34
README.md
34
README.md
@ -1,14 +1,32 @@
|
|||||||
Usage examples:
|
## Using Manage-BiosSettings
|
||||||
powershell
|
|
||||||
|
**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
|
# Export current BIOS settings
|
||||||
Manage-BiosSettings -Action export -FilePath "current_bios.txt"
|
Manage-BiosSettings -Action export -FilePath "current_bios.txt"
|
||||||
|
|
||||||
# Import BIOS settings from file
|
# Import BIOS settings from file
|
||||||
Manage-BiosSettings -Action import -FilePath "new_bios.txt"
|
Manage-BiosSettings -Action import -FilePath "new_bios.txt"
|
||||||
|
```
|
||||||
|
|
||||||
This script provides:
|
**Features**
|
||||||
Export functionality to save current BIOS settings
|
- Export functionality to save current BIOS settings
|
||||||
Import functionality to apply settings from a file
|
- Import functionality to apply settings from file
|
||||||
Error handling and validation
|
- Error handling and validation
|
||||||
Administrator privilege checking
|
- Administrator privilege checking
|
||||||
Status messages for each operation
|
- 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.
|
@ -21,7 +21,7 @@ BootTimeExtension = Disable
|
|||||||
SpeedStep = Enable
|
SpeedStep = Enable
|
||||||
AdaptiveThermalManagementAC = MaximizePerformance
|
AdaptiveThermalManagementAC = MaximizePerformance
|
||||||
AdaptiveThermalManagementBattery = MaximizePerformance
|
AdaptiveThermalManagementBattery = MaximizePerformance
|
||||||
CPUPowerManagement = Disable
|
CPUPowerManagement = Enable
|
||||||
OnByAcAttach = Disable
|
OnByAcAttach = Disable
|
||||||
PasswordBeep = Disable
|
PasswordBeep = Disable
|
||||||
KeyboardBeep = Enable
|
KeyboardBeep = Enable
|
||||||
|
Loading…
Reference in New Issue
Block a user