Site moved to new server

I finally got time and energy to move this site to a more powerful server.
It´s the Odroid XU4 I wrote about some month ago.
The site is now stored at a external SSD-disk so I have more storage and quicker disk.
And you can actually feel the difference when browsing the site.

The whole server!

That´s it for now….

More will come when I find something interesting to write about…

New toy! Odroid XU4 :)

I love these computers!


This week I recieved a new arm-based computer, An Odroid XU4 from Hardkernel.
This beast have a Samsung big.LITTLE processor with 4 (Cortex A15)+4 (Cortex A7) cores, 2Gb ram, gigabit ethernet, 2 USB3 ports, 1 USB2 port and HDMI out.

Top view. Look at that beautiful blue heatsink!
The size is about the same as an Raspberry Pi.
The case I bought wasn’t that good looking, but it does the job of protecting the motherboard.

My plan is to make this the new host for this site… someday.
But first I´m going to play a little with it.

In the Odroid forum you can find a lot of help and information.

Right now I`m play around a bit with Android and RetroPi.
But soon I hope to start configure WordPress on it.

Some links for more information and other stuff

Hardkernels product page for the XU4.
Armbian Linux image.
RetroPi instructions for manuall install on the XU4 and the offical Hardkernel Linux image they base the the installation on.
DietPi Linux image, partly based on Armbian.


Read and Write BIOS settings to Lenovo computers



As I often say, if you can automate things you have time to do more fun stuff.
And in windows deployment from SCCM/MDT i’ts always nice to even automate BIOS settings.

Lenovo have been smart in this way. Instead of using special tools, like HP and Dell, you can use WMI methods instead.

This might not be the best coding ever, but you might get the idea here….

Reading settings

The easiest way is probably to sett BIOS as you want it, boot up in Windows or Windows PE with powershell support in it and run this script.

ForEach($Obj in $BiosSettings){
    if ($Obj.CurrentSetting -ne "") {
        Write-Host $Obj.CurrentSetting.replace(",",";")

This will output all the BIOS settings in a textfile in the same directory as the script. You can easily change the values and/or remove values you don’t want to change.

Writing settings

$SettingsFile = "Settings.txt"
$SettingsObj = ""
$SettingsObj = Get-Content $PSScriptRoot\$SettingsFile
$PasswordState = (gwmi -class Lenovo_BiosPasswordSettings -namespace root\wmi).PasswordState

function Set-LenovoBiosSettingsValues
    Param( [string]$WMIObj, [string]$WMIValue )

    If ($PasswordIsSet -eq $false) {
        (gwmi -class Lenovo_SetBiosSetting –namespace root\wmi).SetBiosSetting("$WMIObj,$WMIValue")
    Else {
     (gwmi -class Lenovo_SetBiosSetting -namespace root\wmi).SetBiosSetting("$WMIObj,$WMIValue,$BiosPass,ascii,us")

    gwmi -class Lenovo_BiosSetting -namespace root\wmi | Where-Object {$_.CurrentSetting.split(",",[StringSplitOptions]::RemoveEmptyEntries) -eq "$WMIObj"} |
    Format-List CurrentSetting

function Set-LenovoBiosSettings {

    #Check if BIOS password is set
    If ($PasswordState -eq '0') {
        $PasswordIsSet = $false
        Write-Host "BIOS password not set"
    Else {
        $PasswordIsSet = $true
        Write-Host "BIOS password is set"

    foreach ($setting in $SettingsObj) {
        $Sobj = ""
        $Svar1 = ""
        $Svar2 = ""
        $Sobj = $Setting -split ';'

        Write-Host "Sets ""$Svar1"" to ""$Svar2"""
        Set-LenovoBiosSettingsValues -WMIObj $Svar1 -WMIValue $Svar2
    #Saves the bios-settings
    Write-Host "Saving settings"
    (gwmi -class Lenovo_SaveBiosSettings -namespace root\wmi).SaveBiosSettings("$BiosPass,ascii,us")

# Start writing settings

There are some shortcomings with the way Lenovo has implemented this, some settings cannot be made.
For an example you cannot sett a BIOS password if there aren’t any allready. So you can only change password.
And you cannot set “PhysicalPresenceForTpmClear” to Disable. But only change from Disable to Enable.


You you want to read more about this, you can read the offical documentation and maybe find other things you can do via the wmi.