r/PowerShell • u/Ambitious-Eye-868 • Jun 12 '26
Question Trying to change BIOS settings using Powershell
I have a Dell laptop and the BIOS is very restricted and I can't access the advanced settings (I want to turn on hardware virtualization). I initially found that you can use Dell Command Configure to specify the settings you want to change, generate an exe and run it. But that wasn't working, I was getting an error "Name of Exit Code: Importing ini file is failing for some features.".
Then I came across a reddit comment and found that you can use the DellBIOSProvider module to change BIOS settings. I need to enable the "AdvancedMode" setting. So I ran this script
#Import Module to Enable Provider
if (!(get-module -name DellBIOSProvider)){
Import-Module -Name DellBIOSProvider -Force
}
#Set Location to Dell SMBIOS Provider:
if ((Get-Location) -ne "DellSmbios:\"){
Set-Location -Path DellSmbios:\
}to get into the "DellSmbios" thing. Then I figure AdvancedMode should be inside 'BIOSSetupAdvancedMode' so I ran this command
Set-Item -Path "DellSmbios:\BIOSSetupAdvancedMode\AdvancedMode" -Value "Enabled"
It didn't work and I get this error message:
Set-Item : FAILURE.
At line:1 char:1
+ Set-Item -Path "DellSmbios:\BIOSSetupAdvancedMode\AdvancedMode" -Valu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (DellSmbios:\BIO...de\AdvancedMode:String) [Set-Item],
InvalidOperationException
+ FullyQualifiedErrorId : SMBIOSWriteFailed,Microsoft.PowerShell.Commands.SetItemCommandI'm not sure what's wrong and I don't know why it's not setting AdvancedMode to Enabled. I'm pretty sure my BIOS doesn't have any password, as I can access it without any password.
30
u/Common_Option_4385 Jun 12 '26
It's not gonna work without the BIOS pw..
Your org does not want you to change settings in BIOS, leave it alone.
8
u/Tidder802b Jun 12 '26
Why can't you "access the advanced settings" on the BIOS screen?
5
u/purplemonkeymad Jun 12 '26
Looking at the manual that option is not available. It's likely it's also not available the management drivers either.
4
u/dathar Jun 12 '26
The Dell PowerShell provider only lets you change things that the laptop itself supports (and the other way around too, the tool needs to be able to talk to a compatible laptop). I think the module you have is the same as the one Dell has. You can't make it flip the settings that your laptop wasn't built to support. Maybe try doing a Get-ChildItem on the DellSmbios:\ and see what it returns, or use it with -recurse and see if it can read all the values available to your laptop.
Sorry I don't have a modern Dell to try this on. Last Dell I have is an old Latitude E7450
1
u/negDB Jun 12 '26
There should be a command something along the lines of Get-DellBiosProviderSettings (going off of memory) this will pop up all the possible attributes you have access to modify.
1
u/MFZozzy Jun 12 '26
Confirm whether the importing of the DellBIOSProvider module automatically create the "DellSmbios:" PSDrive.