If you’re logged on with Remote Desktop (and probably in several other cases) Windows will not respond appropriately to the power button being pressed. Instead of shutting down, it will display a message asking you if that’s what you really want to do, as if holding the same button for 5 seconds to force the […]
So, you get this error message: Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer’s first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again. ..and sure, you could use -UseBasicParsing but, depending on your use case, you might then have to write […]
So, you resurrected a VM from the cold, damp crypts of the deepest backup dungeons, and now you can’t log in because the VM doesn’t trust the domain server anymore? That’s alright. The Windows Domain will rotate its keys from time to time, and an offline VM snapshot will not know about it. You don’t […]
I recently had to whip out my Windows batch scripting skills to grab the default gateway for a routing script. Here’s what I ended up with: route print | findstr /R /C:”^[ ][ ]*0.0.0.0[ ]” | for /f “tokens=3” %%i in (‘more’) do (echo %%i & exit) >gw.tmpset /P gw=<gw.tmpdel gw.tmpecho “%gw%” This does, unfortunately, […]
This is a reference for the commands to enable the firewall rules necessary to remotely manage Windows Server Core and Hyper-V Core. I keep having to look these up… Enable-NetFireWallRule -DisplayName “Windows Management Instrumentation (DCOM-In)” Enable-NetFireWallRule -DisplayGroup “Remote Event Log Management” Enable-NetFireWallRule -DisplayGroup “Remote Service Management” Enable-NetFireWallRule -DisplayGroup “Remote Volume Management” Enable-NetFireWallRule -DisplayGroup “Remote Scheduled […]
Mostly notes to myself, but hey, maybe it helps you too! Get Kali for the GPD Pocket I installed using re4son’s modified image from here. Removing the GRUB splash screen (it’s sideways anyway, which looks horrible, and I’m not multibooting) /etc/default/grub GRUB_TIMEOUT=0 GRUB_BACKGROUND=”” Speeding up WiFi so it doesn’t lag if you SSH into the […]
I recently reinstalled one of these cheap-ass, but surprisingly well built for the price, “ultraportable” laptops. Here’s the WiFi driver to get you started, and the remaining drivers that were not available from Windows Update. Enjoy.
Tasked with cleaning up an installation script, I noticed it was calling dpkg dozens of times to verify that the required packages were in place. On a Raspberry Pi, or similar low powered device, this takes ages. I replaced it with the following: c=0 while read -r pkg; do printf ‘Missing package: %s\n’ “$pkg” >&2 […]
Awesome laptop. Some tools I use, archived for personal reference. AutoHotkey LidWatcher
For personal reference: MNL-1566.pdf Original source here.