PowerShell: Disable CapsLock

Here’s a quick code snippet that shows how to disable CapsLock using PowerShell, combined with some embedded C# and .NET Interop (aka. P/Invoke.NET) code. Credit goes to “BobS00327” for the C# code necessary to handle this. function Set-CapsLock([switch]$Disable = $true) { $CapsCtrl = @" using System; using System.Runtime.InteropServices; using System.Windows.Forms; public class CapsLockControl { [DllImport("user32.dll")] … Read morePowerShell: Disable CapsLock

Uploading a Video to Youtube via PowerShell

Hey guys! I know it’s been a long time since I have posted anything useful (that is, assuming anything I post is useful! haha). While sitting at Starbucks today, I suddenly came up with an idea for a new post though, and after doing a quick bit of research, figured I would write about it! … Read moreUploading a Video to Youtube via PowerShell

Handy Process Management Utilities

Hey guys, I just wanted to share a couple of cool utilities to assist with managing processes. ImageCFG (http://www.robpol86.com/index.php/ImageCFG) ImageCFG is a utility that lets you tweak the CPU affinity of an executable. What does this mean? Well, if you have a multi-core system, or even a hyper-threaded (virtual multi-core) system, you can restrict which … Read moreHandy Process Management Utilities