/
/

How to Add or Remove Default New Context Menu Items in Windows 10

How to Add or Remove Default New Context Menu Items in Windows 10 blog banner image

If you’ve ever wanted to add a new file in File Explorer, you’d probably use the context menu, “New” option. This Windows 10 element allows you to conveniently create new files and folders by simply right-clicking on File Explorer, scrolling down to the option “New”, and creating certain file types you want.

While it’s useful, it may be distracting or even cumbersome in managed environments. For IT professionals and managed service providers (MSPs), customizing the “New” context menu is recommended to streamline workflows and enforce consistency across environments.

What is the “New” context menu in Windows 10?

The “New” context menu is the submenu that appears when you right-click on File Explorer and hover over the “New” option. It allows you to quickly create new items such as text documents, folders, and other file types registered on the system.

These entries are controlled through the Windows Registry, specifically through keys located under the HKEY_CLASSES_ROOT hive for each file extension.

How to remove items from the “New” context menu

Using the Registry Editor

⚠️ Remember: Making changes to the Registry Editor can lead to system instability if done incorrectly. We strongly recommend backing up your Registry before proceeding.

  1. Press Windows + R, type regedit, and press Enter.
  2. Navigate to the following path: 
    • HKEY_CLASSES_ROOT\.file_extension (Replace .file_extension with the actual extension of the file type you want to remove, such as .bmp, .rtf, or .zip.)
  3. Under the selected file extension key, look for the subkey ShellNew. Right-click it and choose Delete. Confirm the action when prompted.
  4. Restart File Explorer to apply the changes.
    • To do this:
      1. Open Task Manager (Ctrl + Shift + Esc)
      2. Look for Windows Explorer under Processes,
      3. Right-click on it, and choose Restart.

How to add items to the “New” context menu

If you want to add a custom file type to the “New” menu, such as .log, .md, or any custom file format used by your organization, you’ll need to manually create the appropriate registry key and values.

  1. Press Windows + R, type regedit, and press Enter.
  2. Navigate to the following path: HKEY_CLASSES_ROOT
    • Right-click on HKEY_CLASSES_ROOT, select New > Key, and name it with the file extension you want to add, including the dot (for example, .log).
  3. Right-click on the file extension (for example, .log), select New > Key, and name the new key ShellNew.
  4. Inside the ShellNew key, you’ll need to create a value that defines how the new file is created. Command value types include:
    • NullFile: Adds the entry and creates an empty file when selected. To use it, create a new string value, name it NullFile, and leave the value data blank.
    • FileName: uses a template file.
    • Command: Runs a custom command when the item is selected.
  5. Restart File Explorer to apply the changes.

For example, to add a new .txt file option, navigate to HKEY_CLASSES_ROOT\.txt\ShellNew, create the NullFile string value, and leave the value blank.

Examples of Registry paths for common file types

File Type

Registry Path

Value Type

Text Document HKEY_CLASSES_ROOT\.txt\ShellNew NullFile
Bitmap Image HKEY_CLASSES_ROOT\.bmp\ShellNew NullFile
Word Document HKEY_CLASSES_ROOT\.docx\ShellNew FileName
Rich Text Document HKEY_CLASSES_ROOT\.rtf\ShellNew NullFile
Compressed Folder HKEY_CLASSES_ROOT\.zip\CompressedFolder\ShellNew Data
Excel Spreadsheet HKEY_CLASSES_ROOT\.xlsx\ShellNew FileName
PowerPoint Presentation HKEY_CLASSES_ROOT\.pptx\ShellNew FileName
HTML File HKEY_CLASSES_ROOT\.html\ShellNew NullFile
XML Document HKEY_CLASSES_ROOT\.xml\ShellNew NullFile
JSON File HKEY_CLASSES_ROOT\.json\ShellNew NullFile
Markdown File (.md) HKEY_CLASSES_ROOT\.md\ShellNew NullFile
Log File (.log) HKEY_CLASSES_ROOT\.log\ShellNew NullFile
Batch Script (.bat) HKEY_CLASSES_ROOT\.bat\ShellNew NullFile
JavaScript File (.js) HKEY_CLASSES_ROOT\.js\ShellNew NullFile
Registry File (.reg) HKEY_CLASSES_ROOT\.reg\ShellNew NullFile

Why modify the context menu, “New”?

While convenient, MSPs and IT enterprises may want to customize the entries that appear under “New”, such as:

  • Minimize visual clutter: Reducing the number of available options keeps the menu tidy and improves usability.
  • Improve productivity: Adding shortcuts saves time, particularly for file types that your organization frequently uses.
  • Standardize user environments: Tailoring the context menu to include only the relevant file types encourages consistency across all endpoints.
  • Enforce security or policy controls: Removing potentially risky file types (such as scripts) from the menu can help prevent unauthorized usage or policy violations.

Troubleshooting & tips for the “New” context menu in Windows 10

Missing file extension keys in the Registry

Some file types (particularly custom ones) might not have a predefined key under HKEY_CLASSES_ROOT. If you don’t see a key for the extension you want to modify, you can safely create one manually.

To do this:

  • Right-click on the path HKEY_CLASSES_ROOT
  • Choose New > Key, and name it with the full extension (including the period/dot before the file path).
  • Then, add the ShellNew subkey as usual.

Registry changes not saving or reverting automatically

This is most likely because you lack sufficient permissions to make changes in the Registry. Make sure that you run Registry Editor as an administrator or ask your IT team to create the changes for you.

Additionally, take note that some antivirus software or endpoint protection tools may block registry changes. If needed, you can temporarily disable them to make the necessary changes.

“New” menu still showing old entries after deletion

Sometimes, File Explorer caches the context menu, and your changes won’t take effect until after you’ve restarted it. To do this, open Task Manager (Ctrl + Shift + Esc), locate Windows Explorer under Processes, right-click it, and press Restart.

If the problem persists, log off from your company and log back in. You can also try rebooting the machine to clear the cache and apply the Registry changes.

When to use NullFile vs. FileName

As its name suggests, a NullFile is useful for scenarios where you want to create a system object but discard all written data. It is recommended for basic formats such as .txt, .md, or .log.

In contrast, FileName is recommended when you want consistency in file content, such as preformatted Word or Excel documents. Just be sure that the template file is accessible at the specified path and remains static.

Deploying changes across multiple machines

For MSPs managing dozens (or hundreds) of devices, manually editing each Registry may be inefficient. If you need to apply Registry changes across your entire environment, we recommend creating a .reg file with your changes and using scripts, Group Policy Preferences, or endpoint management tools like NinjaOne to deploy it.

Want to avoid Registry Editor

If you’re uncomfortable using the Registry Editor, you can use tools like ShellMenuView to modify or disable “New” menu entries. This tool simplifies the process of configuring the “New” context menu and reduces the risk of accidental misconfigurations, especially for less experienced IT personnel.

Accidentally deleted the wrong ShellNew key

If you’ve mistakenly removed a ShellNew key for a file type you still want, you can restore the option. To do this, recreate the key under the appropriate extension and re-add the necessary value (for example, NullFile or FileName). We recommend checking out the instructions listed above for further information.

If you managed to export the key before making changes, you can try reimporting it by double-clicking the .reg backup file.

Changes work for one user but not another

Registry modifications under HKEY_CLASSES_ROOT typically apply system-wide, but, in some cases, user-level overrides under HKEY_CURRENT_USER\Software\Classes may take precedence.

If your changes aren’t showing for a specific user, double-check that the user’s corresponding Registry hive and ensure it doesn’t have conflicting settings. You may need to apply changes at both levels for consistency.

FAQs when configuring the context menu, “New”

Does removing a file type from the “New” context menu delete its functionality entirely?

No. Removing an entry from the “New” context menu only affects how the user interacts with this specific element. The file type itself remains fully functional, and you can still create, open, and save that type of file using the usual applications.

Can I add a custom file type that Windows doesn’t include by default, like .md or .log?

Yes, as long as the file extension is registered under HKEY_CLASSES_ROOT. If the extension doesn’t exist yet, you can manually create it using the instructions listed above.

Why do some context menu entries reappear after being removed?

This typically happens if the associated application re-registers the file type during an update or repair installation. To resolve this, use Group Policy or automation scripts to reapply your changes at predetermined times.

Is it safe to make these changes in a production environment?

Yes, but proceed with caution. Editing the registry is inherently risky if done incorrectly. That’s why it is highly recommended that you backup affected keys or create a full system restore point before making changes.

If possible, you can try testing any Registry changes in a staging environment.

Using the context menu, “New”, correctly

We often take the many built-in elements in Windows 10 for granted. A perfect example is the “New” context menu, which we frequently use but rarely consider. Even so, customizing this element is a simple but powerful way to streamline your user experience. For IT professionals or MSPs, customizing the “New” context menu may be useful in decluttering interfaces, standardizing workflows, and improving system usability.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).