Skip to content

Instantly share code, notes, and snippets.

View asheroto's full-sized avatar
😎

asheroto

😎
View GitHub Profile
@asheroto
asheroto / README.md
Last active April 24, 2026 20:53
UniFi OS Server on Debian Linux

UniFi OS Server on Debian (Podman)

Deploys UniFi OS Server in a Podman container on Debian.


Requirements

  • Debian 12 or 13
  • Root access
@asheroto
asheroto / Fix-sysprep.ps1
Created April 24, 2026 18:36
Fixes common Windows sysprep failures: removes WidgetsPlatformRuntime (0x80073cf2), reinstalls MSDTC (0x80070424), disables reserved storage, and resets generalization state registry keys.
#Requires -RunAsAdministrator
Clear-Host
Write-Host "=== Sysprep Fix ===" -ForegroundColor Cyan
Write-Host ""
# -- Registry fixes ---
Write-Host ""
Write-Host "Applying registry fixes..." -ForegroundColor Yellow
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v SkipRearm /t REG_DWORD /d 1 /f
@asheroto
asheroto / Automatically-Start-UniFi-OS-Server.md
Last active April 18, 2026 13:02
Automatically Start UniFi OS Server on Boot on Windows
@asheroto
asheroto / ScreenController.md
Last active January 28, 2026 14:33
PowerShell script to control monitor power state: place all displays into standby with -TurnOff or wake them with -TurnOn.

Screen Controller (PowerShell)

A simple PowerShell script to reliably control monitor/display state.

This uses the same method as when a computer display times out through normal power settings. Unlike tools like ControlMyMonitor that change monitor hardware settings and actually power off the monitor, this script uses Windows messaging to place displays into standby (not a full power-off) and runs entirely in PowerShell with no external dependencies. You can wake the screens manually by moving the mouse or pressing a key and allowing a few seconds for them to resume, or wake them remotely through the script.

Use -TurnOff to put displays into standby, or -TurnOn to wake them.

Usage

@asheroto
asheroto / Remove Webroot.ps1
Last active April 22, 2026 11:52
Forcefully removes Webroot Endpoint Protection.
#Requires -RunAsAdministrator
<#
.SYNOPSIS
Force removes Webroot SecureAnywhere remnants.
.DESCRIPTION
Designed to be run in Safe Mode. Performs process termination, uninstall attempt,
service removal, registry cleanup, and filesystem cleanup with existence checks.
#>
@asheroto
asheroto / README.md
Last active April 18, 2026 12:22
Running Ubiquiti UniFi Controller as a Windows Service or on Startup (simply)

Warning

The UniFi Network Application is no longer supported by Ubiquiti. Migration to UniFi OS Server is recommended. See this script for user account setup and automatic startup.

Running the UniFi Network Controller as a Windows Service or on Startup

The controller will run fine using the built-in java.exe included with the UniFi software, so no additional installation is required for basic functionality. However, Ubiquiti recommends using Adoptium due to Oracle Java licensing concerns and to stay current with supported versions.

If you choose to follow that recommendation instead of using the bundled Java, refer to the official guide to determine the correct Java version for your UniFi release. If using Adoptium, update the path to java.exe to match your installed version (the

@asheroto
asheroto / README.md
Last active October 30, 2025 00:08
How to restore an offline OneDrive file. Resolving Issues with Restoring OneDrive Files from Image-Based Backups or Offline Drives.

Resolving Issues with Restoring OneDrive Files from Image-Based Backups or Offline Drives

Restoring files from an image-based backup or offline drives of a OneDrive folder can result in files appearing corrupted or inaccessible. This issue is often due to OneDrive's Files On-Demand feature, which stores placeholder files instead of the actual data locally. Additionally, even when files are fully downloaded, they may retain reparse point attributes that can prevent the files from opening correctly.

Common Scenarios Affected

This problem can occur with image-based backup solutions or when restoring files from offline drives if the backup includes placeholders instead of the actual file data. The following software are examples of those which may be impacted.

  • Acronis True Image or Cyber Protect
  • Macrium Reflect
  • Veeam Backup & Replication
@asheroto
asheroto / README.md
Last active October 30, 2025 00:09
Remove and block Webroot Web Threat Shield extension from Chrome and Edge.

Remove and Block Webroot Web Threat Shield Extension from Chrome and Edge

This PowerShell script is designed to remove and block Webroot's Web Threat Shield browser extension from Chrome and Edge.

Note: This script does not support Firefox. It specifically targets only Chrome and Edge.

When you disable Web Threat Shield within Webroot, the extension may remain installed in users' browsers. Additionally, even if you manually remove the extension, Webroot may attempt to reinstall it.

This script uses simple and safe registry modifications to remove and block the installation of the extension without requiring a browser or system restart. The browser remains open during the process.

@asheroto
asheroto / README.md
Last active April 27, 2026 03:23
Bypass Windows 11 Upgrade Assistant / PC Health Check / TPM and CPU Settings. Ignore PC Health Check results.

Bypass Windows 11 Upgrade Assistant / Setup Hardware Checks (TPM, CPU, RAM)

This PowerShell script allows you to bypass TPM 2.0, unsupported CPU, and memory checks enforced by the Windows 11 Upgrade Assistant and setup.exe from Windows installation media. It eliminates common upgrade blocks such as:

  • This PC doesn't currently meet Windows 11 system requirements.
  • TPM 2.0 must be supported and enabled on this PC.
  • The processor isn't currently supported for Windows 11.

What It Does