An open API service indexing awesome lists of open source software.

https://github.com/osmanonurkoc/win_new_menu_editor

A modern PowerShell/WPF utility to clean up the Windows "Right Click > New" menu. Features a silent mode, dark theme support, and a permission blocker to prevent items from returning.
https://github.com/osmanonurkoc/win_new_menu_editor

context-menu new-menu windows windows-10 windows-11

Last synced: 5 months ago
JSON representation

A modern PowerShell/WPF utility to clean up the Windows "Right Click > New" menu. Features a silent mode, dark theme support, and a permission blocker to prevent items from returning.

Awesome Lists containing this project

README

          

# 📂 Windows New Menu Editor

A lightweight, powerful PowerShell utility with a modern WPF interface to organize, clean, and manage the Windows "Right Click > New" context menu.

[![Download Latest Release](https://img.shields.io/badge/Download-Latest_Release-2ea44f?style=for-the-badge&logo=github&logoColor=white)](https://github.com/osmanonurkoc/win_new_menu_editor/releases/latest)

![License](https://img.shields.io/badge/license-MIT-blue.svg)
![Platform](https://img.shields.io/badge/platform-Windows-0078D4.svg)
![PowerShell](https://img.shields.io/badge/PowerShell-v5.1%2B-5391FE.svg)

## 📸 Overview

*Is your "New" menu cluttered with files you never create? Clean it up instantly.*

This tool scans the Windows Registry (`HKCU` & `HKLM`) for all file extensions registered in the "ShellNew" subsystem. It allows you to toggle them on/off instantly or permanently delete them.

## 📸 Screenshots




## ✨ Key Features

* **🎨 Modern UI & Theme Engine:** Automatically detects your Windows System Theme (Dark/Light Mode) and adjusts the interface colors accordingly.
* **🔇 Silent Mode:** Designed for speed. Toggles, deletions, and blocks happen instantly without annoying "Are you sure?" popups.
* **🛡️ Persistence Lock (Block Feature):**
* Some apps recreate their menu items when updated or opened.
* **Solution:** Right-click an item and select **"Block"**. This modifies the Registry ACL (Permissions) to `Deny` access, effectively preventing the app from adding the item back.
* **➕ Template Manager:** Easily add your own custom file templates (e.g., `.py`, `.js`, `.md`) to the menu using a simple file picker.
* **🚀 Native PowerShell:** No external dependencies or DLLs required. Runs on standard Windows installations.

## 🚀 Getting Started

### Prerequisites
* **OS:** Windows 10 or Windows 11.
* **Runtime:** PowerShell 5.1 (Pre-installed on Windows) or PowerShell 7+.

### Installation & Usage
#Exe:
1. Download the latest `NewMenuEditor.exe` from the **[Releases Page](https://github.com/osmanonurkoc/win_new_menu_editor/releases/latest)**.
2. Right-click aand **Run as Administrator**.

#PS1:
1. Download the latest `NewMenuEditor.ps1` from the **[Source Code](https://github.com/osmanonurkoc/win_new_menu_editor/archive/refs/heads/main.zip)**.
2. Right-click the file and select **Run with PowerShell**.
* *Note:* The tool requires Administrator privileges to modify HKLM keys. It will auto-request elevation if started as a standard user.
> **Note:** If you run into execution policy errors, open PowerShell as Admin and run: `Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass`.

### ⚠️ Antivirus Warnings (False Positives)

You may notice that some antivirus engines (such as Windows Defender, SentinelOne, or CrowdStrike) flag the `.exe` release of this tool as suspicious (e.g., `Trojan:Win32/Wacatac`, `MachineLearning/Anomalous`, or `Generic.Malware`).

**This is a known False Positive.**

#### Why is this happening?

This application is originally a **PowerShell script** converted into an executable (`.exe`) to make it easier to run. Modern antivirus "AI" and "Heuristic" engines often aggressively block _any_ unsigned program that executes PowerShell commands internally, classifying them as "droppers" or "loaders" by default, even if the code itself is completely safe.

#### I don't trust the EXE. What should I do?

Since this project is open-source, **you do not have to use the EXE file.**

If your antivirus blocks the executable or if you prefer full transparency, you can run the source script directly:

1. Download the `.ps1` file from this repository.

2. Right-click the file and select **Run with PowerShell**.

3. _(Note: You may need to enable script execution by running `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser` in PowerShell once)._

We provide the compiled `.exe` solely for convenience (icon support, double-click execution). The code logic is identical to the `.ps1` script.


## ⚙️ How It Works

### Registry Scanning
The tool looks for `ShellNew` keys in:
* `HKEY_CLASSES_ROOT` (Merged view)
* `HKEY_CURRENT_USER\Software\Classes`
* `HKEY_LOCAL_MACHINE\Software\Classes`

### Disabling Items
When you toggle an item **OFF**, the tool renames the registry key from `ShellNew` to `_ShellNew_Disabled`. This preserves the data while hiding it from Windows Explorer. Toggling it **ON** reverses this process.

### Blocking Items
The "Block" feature creates an empty key and sets the **Access Control List (ACL)** to `Deny Everyone`. This creates a "dead zone" in the registry that installers cannot overwrite.

## ⚠️ Disclaimer
This tool modifies the Windows Registry. While it includes safety checks (renaming instead of deleting by default), **use it at your own risk**.

## 📄 License
This project is licensed under the [MIT License](LICENSE).

---
*Created by [@osmanonurkoc](https://github.com/osmanonurkoc)*