The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for the ‘Windows’ Category

Installing Chocolatey on Windows 10 and up

Posted by jpluimers on 2025/04/02

Steps for installing Chocolatey on Windows 11 and up or 10 version 1803 and up.

Since I often install Windows on machines where it is not easy to copy/paste longer install commands my steps are slightly different than the ones on [Wayback/Archive] Chocolatey Software | Installing Chocolatey:

  1. Start a regular command prompt
  2. Either these two (the options are equivalent, see [Wayback/Archive] curl: transfer a URL | curl Commands | Man Pages | ManKier for --remote-name and -O):
    • curl --remote-name https://community.chocolatey.org/install.ps1
    • curl -O https://community.chocolatey.org/install.ps1

    Note the cURL pre-installed on Windows 10 since at least 6 years*: release 1803 or insider build 17063 is good enough to download the Chocolatey install script

  3. Inspect the downloaded install.ps1 to check if you spot anything you dislike
  4. Start an elevated (administrator) command prompt
  5. Start PowerShell
  6. Execute this command
    • Set-ExecutionPolicy Bypass -Scope Process -Force
  7. Execute this command in the folder where you downloaded install.ps1
    • .\install.ps1
  • Yup, a custom build of cURL has been pre-installed on Windows 10 and up since more than 6 years:

Read the rest of this entry »

Posted in *nix, *nix-tools, Chocolatey, cURL, Development, Power User, Software Development, Windows, Windows 10, Windows 11, Windows Development | Leave a Comment »

git on Windows: figuring out SID mismatch

Posted by jpluimers on 2025/03/31

A few years back I had an error happen a while on one of my Windows machines after a git pull: fatal: detected dubious ownership in repository at 'C:/versioned/repository' followed by a few lines with Windows SIDs (Security Identifiers) that I had to map to actual users.

I thought I had it scheduled, but my notes were in a draft post, so when I bumped into it again when upgrading an old virtual machine with new versions I finished it and scheduled it for now.

The first time I got the error was after git for Windows fixed security vulnerability [Wayback/Archive] CVE-2022-24765 and included the quote from [Wayback/Archive] Uncontrolled search for the Git directory in Git for Windows · Advisory · git-for-windows/git:

Read the rest of this entry »

Posted in CommandLine, Development, DVCS - Distributed Version Control, git, Power User, PowerShell, PowerShell, Scripting, Software Development, Source Code Management, Windows, Windows 10, Windows 11, Windows 7 | Tagged: | Leave a Comment »

Note for future self if .NET hash calculations from `ComputeHash()` are slower than expected

Posted by jpluimers on 2025/03/26

Normally when calculating hashes in .NET you use the [Wayback/Archive] HashAlgorithm.ComputeHash Method (System.Security.Cryptography) | Microsoft Learn.

This can be slow as [Wayback/Archive] cmcginty showed while answering the question [Wayback/Archive] How to get an MD5 checksum in PowerShell – Stack Overflow by [Wayback/Archive] Luke101 posing a faster solution (in this case for md5, but it can be generalised):

Read the rest of this entry »

Posted in .NET, C#, Chocolatey, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows | Tagged: | Leave a Comment »

I was today years old when I found there is a shortcut to switch to the Terminal tab in Visual Studio Code

Posted by jpluimers on 2025/03/12

Boy, I always to the Ctrl+Shift+Space on Microsoft Windows (or on MacOS Command+Shift+Space) detour to switch to the Terminal tab in Visual Studio Code

So I was amazed to find the shortcut inside the first bullet in the Google Search quote of the first result at [Wayback/Archive] vscode terminal open new terminal – Recherche Google:

Read the rest of this entry »

Posted in .NET, Apple, Development, Keyboards and Keyboard Shortcuts, KVM keyboard/video/mouse, Mac OS X / OS X / MacOS, Power User, Software Development, Terminal, vscode Visual Studio Code, Windows, Windows Terminal | Tagged: | Leave a Comment »

oobe\bypassnro removed from Windows 11 24H2 dead/hidden ? – YouTube – or is it? Two alternatives

Posted by jpluimers on 2025/03/07

I needed this for some Windows ARM VMs on VMware Fusion for running on my M1 MacBook Pro: [Wayback/Archive] oobe\bypassnro removed from Windows 11 24H2 dead/hidden ? – YouTube

In the end this combination works:

  • before booting, remove the network adapter (physically, or virtually from VMware Fusion or from Parallels)
  • after boot, as soon as the Shift-F10 combination works, run oobe\bypassnro (or add the registry entry, see below)

After this, Windows detected no network, and offered an install with a local username/password indicating the choice “I don’t have internet”.

If that ever fails in the future, I can use this trick from the comments:

Read the rest of this entry »

Posted in Apple, Apple Silicon, ARM Mac, M1 Mac, Mac, MacBook, Power User, Windows, Windows 11 | Tagged: | Leave a Comment »

GitHub – Sanakan8472/copy-dialog-lunar-lander: Play lunar lander in you windows file copy dialog

Posted by jpluimers on 2025/02/25

[Wayback/Archive] Sanakan8472/copy-dialog-lunar-lander: Play lunar lander in you windows file copy dialog

Hard

Via:

--jeroen

Read the rest of this entry »

Posted in .NET, C#, Development, Power User, Software Development, Uncategorized, Windows, Windows 10, Windows 11, Windows Development | Leave a Comment »

ufrisk/MemProcFS: The Memory Process File System

Posted by jpluimers on 2025/02/21

Interesting: [Wayback/Archive] ufrisk/MemProcFS: The Memory Process File System

MemProcFS is an easy and convenient way of viewing physical memory as files in a virtual file system.

Easy trivial point and click memory analysis without the need for complicated commandline arguments! Access memory content and artifacts via files in a mounted virtual file system or via a feature rich application library to include in your own projects!

Analyze memory dump files, live memory via DumpIt or WinPMEM, live memory in read-write mode from virtual machines or from [Wayback/Archive] PCILeech [Wayback/Archive] FPGA hardware devices!

It’s even possible to connect to a remote LeechAgent memory acquisition agent over a secured connection – allowing for remote live memory incident response – even over higher latency low band-width connections! Peek into Virtual Machines with [Wayback/Archive] LiveCloudKd or [Wayback/Archive] VMWare!

Use your favorite tools to analyze memory – use your favorite hex editors, your python and powershell scripts, WinDbg or your favorite disassemblers and debuggers – all will work trivally with MemProcFS by just reading and writing files!

On Windows, there is even the cool tool [Wayback/Archive] evild3ad/MemProcFS-Analyzer: MemProcFS-Analyzer – Automated Forensic Analysis of Windows Memory Dumps for DFIR:

Read the rest of this entry »

Posted in *nix, *nix-tools, Power User, Windows | Tagged: , , | Leave a Comment »

Code52/carnac: A utility to give some insight into how you use your keyboard (on Windows systems)

Posted by jpluimers on 2025/02/18

I unconsciously wanted a tool like this for a long time, and was glad I finally searched for it:

A keyboard logging and presentation utility for presentations, screencasts, and to help you become a better keyboard user.

[Wayback/Archive] Code52/carnac: A utility to give some insight into how you use your keyboard

The first time I saw something similar was in the Delphi days where it was part of a plugin for CodeRush in Delphi (think Delphi 5-6 era), the famous developer productivity tool by Mark Miller that later got rewritten for Visual Studio and became part of DevExpress.

So I searched for [Wayback/Archive] windows show keystrokes – Google Search which found [Wayback/Archive] How to show keystrokes on Windows 10 which in turn mentioned a fork of Carnac.

As it turns out Read the rest of this entry »

Posted in .NET, Delphi, Development, Hardware, Keyboards and Keyboard Shortcuts, KVM keyboard/video/mouse, Power User, Software Development, Windows, Windows Development | Leave a Comment »

Fun with Windows Containers – Popping Calc

Posted by jpluimers on 2025/02/14

Running Kubernetes containers on Windows means taking into account a different can of worms than running them on Linux.

For example [Wayback/Archive] Fun with Windows Containers – Popping Calc explains about the various isolation levels and privileges (through runAsUserName) and this helpful advice:

Read the rest of this entry »

Posted in *nix, *nix-tools, Cloud, Containers, Docker, Infrastructure, Kubernetes (k8n), Power User, Windows | Leave a Comment »

Mimikatz and password dumps | Ivan’s IT learning blog

Posted by jpluimers on 2025/01/17

Having had to use Mimikatz a few times in the past, I was not aware of the history.

So I was glad to find this elaborate article [Wayback/Archive] Mimikatz and password dumps | Ivan’s IT learning blog and the video (embedded after the signature). [Wayback/Archive] How to fix mimikatz null password in Windows 10 | WORKING 2019!!! – YouTube

Besides the history, it also explains why sometimes you only get hashes and other times you do get plain text passwords.

Recommended reading.

--jeroen

Read the rest of this entry »

Posted in Power User, Red team, Security, Windows, Windows 10, Windows 11, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016 | Leave a Comment »