Change BIOS settings with PS - Lenovo
Posted by thedudeintheitoffice@reddit | sysadmin | View on Reddit | 13 comments
Hi, i´m trying to change the bios settings in a Lenovo ThinCentre Neo 30a Gen 3 via powershell with this command lines:
Get-WmiObject -class Lenovo\_BiosSetting -namespace root\\wmi | select-object InstanceName, currentsetting
$getLenovoBIOS = gwmi -class Lenovo\_SetBiosSetting -namespace root\\wmi
$getLenovoBIOS.SetBiosSetting("WakeOnLAN,Enable")
$SaveLenovoBIOS = (gwmi -class Lenovo\_SaveBiosSettings -namespace root\\wmi)
$SaveLenovoBIOS.SaveBiosSettings()
In older Lenovo AIO´s it worked, but in this ones i get a failed return with:
"Get-WmiObject : Clase no válida "Lenovo\_BiosSetting"
Any ideas? i think they changed the class name in this new bios but i can´t seem to find any deployment guide that has it.
Thanks
13 Comments
SevaraB@reddit
thedudeintheitoffice@reddit (OP)
tmontney@reddit
SevaraB@reddit
willtel76@reddit
thedudeintheitoffice@reddit (OP)
tmontney@reddit
thedudeintheitoffice@reddit (OP)
willtel76@reddit
thedudeintheitoffice@reddit (OP)
tmontney@reddit
willtel76@reddit
tmontney@reddit