Posts

Showing posts with the label Windows

Decaf caffeine: Keeping Your PC Awake with PowerShell

Image
If you’re like me and find yourself working odd hours—especially over the weekend—you know how frustrating it can be when your PC decides to take a nap every few minutes. I often need to glance at my screen to check logs, monitor tasks, or respond to messages, and having to log back in every five minutes is a productivity killer. That’s why I built a simple PowerShell script that acts as a native replacement for the popular Caffeine software. For those unfamiliar, Caffeine is a lightweight utility that simulates a keypress to keep your machine awake. It’s handy—but many corporate environments block third-party utilities like it, leaving you stuck with default sleep settings. Why PowerShell? PowerShell is built into Windows, making it a perfect candidate for scripting solutions that bypass third-party restrictions. My script uses a loop to simulate activity at regular intervals, preventing the system from locking or going to sleep. No installs, no admin rights, no fuss. Here’s a simplif...

Testing a windows user account password

  You may need to test a Windows user account when troubleshooting an issue but the account in questions may not have permissions to say remote desktop etc. To test the account, open a CMD Window and run the following: runas /u:domain.local\user1 notepad.exe You will then be prompted to enter a password. If the password is incorrect you will get the following: c:\>runas /u:domain.local\user1 notepad.exe Enter the password for domain.local\user1: Attempting to start notepad.exe as user "domain.local\user1" ... RUNAS ERROR: Unable to run - notepad.exe 1326: The user name or password is incorrect. If the password was correct Windows Notepad will open.

Reset forgotten Windows Administrator password

Image
  1. Boot the server from a Windows installer ISO 2. Select "Repair" and "Troubleshooting" then click to open a command prompt 3. At the command prompt type: move d:\windows\system32\utilman.exe d:\windows\system32\utilman.exe.bak copy d:\windows\system32\cmd.exe d:\windows\system32\utilman.exe 4. Disconnect the ISO media and Reboot the server 5. When at the login screen click the below icon: 6. This will open a command prompt, at the command prompt type: net user <username> <password> 7. Type "exit" to close the command prompt

Remote Desktop Connection Internal Error has Occurred Fix

  I recently had this issue when trying to RDP to a Windows 2012 server and here is how I resolved the issue. 1. Console to the server either by connecting a KVM to it if its physical or via the console session if using vMware and or Hyper-V 2. Browse to: C:\ProgramData\Microsoft\Crypto\RSA 3. Rename the following folder Machinekeys to Machinekeys_backup 4. Open services.msc and restart the "Remote desktop services" service