Vatland

My ‘simple’ keg scale

5 min readUncategorized

Since Plaato is retiring their Keg scale in 2024/25 I had to find a new solution. Searching the web lead me to GitHub – Callwater/Beerkeg-load-cell. Since I had some ESP and loadcells at my hands it was very quick to setup. Had some wood an…

Read more →

Windows 11 update error 0x80070002

1 min readWindows

Have been struggling with this error for some time. I was stuck with some old build in the developer channel. It was the CU updates that failed, almost all others installed ok. Hoping that a new build would manage to install, but no. I deci…

Read more →

SIlly powershell TXT Fractal animation

1 min readPowershell

Found some c# code drawing a Mandelbrot fractal (I’am so sorry I cant remember where or who) and thought that would be fun to do in powershell. Ended up doing a little animation of the fractal. All done in ASCII. This will not work if you r…

Read more →

PS 2.x convertfrom-json

1 min readDevelopmentPowershell

Powershell 2 does not have a convertfrom-json function and I like to use json files for storing configuration. Searching the web gives almost zero results. Converting a multilevel json structure to hashtable would be very complicated. Since…

Read more →

List users and licenses in Database

2 min readCSPPowershell

Now that we have a database containing user, tenant and license it would be nice to have a function/command to list this. Took me a while to figure it out but thanks to Bing, I prefer Bing before google. I sync my database on a schedule onc…

Read more →

Powershell 2.0 Json to Hash

1 min readDevelopmentPowershell

Resonse from webrequests are normally in Json format and converting back and forth is no problem using convertto/from-json. Only this time some computers did run Powershell 2.0 and did not have any “new” .NET framework installed. So I ran t…

Read more →

Hash tables in powershell

2 min readCSPPowershell

We all have the need to store data in some kind of arrays. I use hashtables a lot. Preferred use is as a lookup table, I can use ‘contains’ instead of looping through each item or reference an object by name instead of index number. Lookup …

Read more →

Simple Powershell MRU list

2 min readPowershell

When using using my secret server powershell functions I got tired of constantly searching for secret ID’s. I had to do a new search just because I could not remember the ID’s. So I added some kind of MRU to my get-secretID function. This c…

Read more →

Get Secretserver secret

1 min readDevelopmentPowershellWindows

Since we are using SecretServer as our credential store it is of great help to be able to get credentials directly from powershell. This is a small function that connects to secretserver webservices and retrieve a secret based on secred ID.…

Read more →