---
title: "Automate Windows 11 Context Menu Actions with Registry"
description: "Add custom right-click actions to Windows 11 context menus by editing registry verbs, deploying .reg files, and scripting with PowerShell."
canonical: "https://adamtheautomator.com/automate-windows-11-context-menu-registry/"
---

# Automate Windows 11 Context Menu Actions with Registry

> Add custom right-click actions to Windows 11 context menus by editing registry verbs, deploying .reg files, and scripting with PowerShell.

Source: https://adamtheautomator.com/automate-windows-11-context-menu-registry/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Automate Windows 11 Context Menu Actions with Registry](https://adamtheautomator.com/wp-content/uploads/publisher/3ec5d9c85b2b811089d5d31807a89aa3/4f6fca0bf1e9083ef5217f16ceed8f939aa4f322e0b4be8d8e3dbb7be8ca3114.webp)

# Automate Windows 11 Context Menu Actions with Registry

[![](https://secure.gravatar.com/avatar/d0b9d42e21e5622713f8b693aa5c0f9244d5f7dd200ed29b8398f52dee5de337?s=192&d=mm&r=g)Adam Bertram](https://adamtheautomator.com/author/adam-bertram/)14 October 202613 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[Windows](/tag/windows/)[Windows Registry](/tag/windows-registry/)[PowerShell](/tag/powershell/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [How Windows 11 Finds a Context Menu Action](#how-windows-11-finds-a-context-menu-action)
*   [The Two Keys Behind Every Verb](#the-two-keys-behind-every-verb)
*   [Add Your First Action with the Registry Editor](#add-your-first-action-with-the-registry-editor)
*   [Confirm the Verb Works](#confirm-the-verb-works)
*   [Deploy the Same Action with a .reg File](#deploy-the-same-action-with-a-reg-file)
*   [Build and Remove Actions with PowerShell](#build-and-remove-actions-with-powershell)
*   [Per-User or Machine-Wide?](#per-user-or-machine-wide)
*   [Target Files, Folders, Backgrounds, and File Types](#target-files-folders-backgrounds-and-file-types)
*   [Handling Multiple Selected Files](#handling-multiple-selected-files)
*   [Add an Icon and a Shift + Right-Click Action](#add-an-icon-and-a-shift--right-click-action)
*   [Restore the Classic Windows 10 Context Menu](#restore-the-classic-windows-10-context-menu)
*   [Undo the Override](#undo-the-override)
*   [Why Your Action Hides Under “Show More Options”](#why-your-action-hides-under-show-more-options)
*   [Troubleshoot and Remove a Custom Action](#troubleshoot-and-remove-a-custom-action)
*   [Remove a Verb Cleanly](#remove-a-verb-cleanly)
*   [Keep the Menu Under Control](#keep-the-menu-under-control)

Open a folder in File Explorer and right-click the empty space inside it. Read the menu that appears, then press Escape and repeat the same gesture while holding Shift. That second menu is the one your tools have targeted for two decades, and Windows 11 pushed it one level down.

Those commands live in the registry, and it’s the only tool you need to put them back on the first right-click. Every change here is a named key you can read and delete later, so you’ll always know what changed and how to reverse it.

## Prerequisites

If you want to follow along hands-on, you’ll need:

*   **Windows 11.** The “Show More Options” behavior this post explains is Windows 11 only; the registry keys themselves also exist on Windows 10. Verified on Windows 11 24H2 (build 26100).
    
*   **A standard user account.** Per-user verbs under `HKEY_CURRENT_USER\Software\Classes` need no elevation, while anything under `HKEY_CLASSES_ROOT` or `HKEY_LOCAL_MACHINE` does. Skip the elevation prompts unless you’re deliberately registering a machine-wide action.
    
*   `reg.exe`\*\* and PowerShell,\*\* both present by default. Windows PowerShell 5.1 is enough, and the [New-Item cmdlet](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-item) behaves the same in PowerShell 7.
    
*   **A registry backup.** Export the key you are about to change before you edit it (**File > Export** in the Registry Editor), and create a system restore point before the CLSID step later in this post. That habit turns a bad edit into a five-minute fix instead of a rebuild.
    

## How Windows 11 Finds a Context Menu Action

Every entry on the right-click menu is a shell verb. Microsoft Learn describes the mechanism in a single sentence: “A verb is a simple text string that is used by the Shell to identify the associated command.” When you right-click a file, the Shell walks a fixed list of registry subkeys and collects the verbs each one offers. Where you register the verb decides which right-clicks surface it.

The target key you pick is the decision that matters most. It is the difference between an action that appears on every file you own and one that appears only on the empty space inside a folder. The table below maps the common targets to their keys.

| Right-click target | Registry key under `HKEY_CLASSES_ROOT` |
| --- | --- |
| Any file | `*\shell` |
| Files and folders together | `AllFileSystemObjects\shell` |
| A selected folder icon | `Directory\shell` |
| Folder background or desktop | `Directory\Background\shell` |
| Desktop background only | `DesktopBackground\shell` |
| A single file type (for example `.log`) | `SystemFileAssociations\.log\shell` |
| A drive | `Drive\shell` |

Microsoft Learn documents each of these in the “Predefined Shell Objects” table of [Registering Shell Extension Handlers](https://learn.microsoft.com/en-us/windows/win32/shell/reg-shell-exts). Two rows carry a trap worth naming now. `Directory\shell` fires when you right-click a folder’s icon, while `Directory\Background\shell` fires when you right-click the empty space inside the folder or on the desktop. A folder command registered under the wrong one costs an afternoon of wondering why nothing appears.

### The Two Keys Behind Every Verb

A verb is two keys and two values, nothing more. First comes the verb key itself. Its name is an internal identifier like `OpenPowerShellHere`, and its `(Default)` value is the text the user actually reads. Second comes a `command` subkey, whose `(Default)` value is the string the Shell executes when the entry is chosen. Microsoft Learn confirms the shape: each verb is registered under `HKEY_CLASSES_ROOT` as `Subkey\Shell\Verb`, and a `command` subkey holds “the data indicating what happens when that verb is invoked.”

That execution string is where most first attempts break. You pass contextual values into it with placeholder tokens:

*   `%1` is the full path of the file or folder the user right-clicked.
    
*   `%V` is the path of the folder background or desktop, which is what `Directory\Background` verbs need.
    
*   `%*` expands to every selected item, for verbs that accept a multiple selection.
    

Placeholder tokens expand to strings that may contain spaces, and Learn is blunt about the consequence: “If any element of the command string contains or might contain spaces, it must be enclosed in quotation marks.” If you omit the quotes, Windows tries to launch half of your path as the program name. Wrap `%1` and `%V` in quotes every time, even when the test path you are using has no spaces.

![Registry verb hierarchy](https://adamtheautomator.com/wp-content/uploads/publisher/94ac9845e031fff976132474140189f3d021d4e6aafc7da92032535ab19a4a35.png)

## Add Your First Action with the Registry Editor

The Registry Editor is the fastest way to see this structure for yourself. You will add an “Open PowerShell Here” action to the folder background, the same location Windows historically used for its own command-prompt entry.

1.  Press **Win+R**, type `regedit`, and press Enter. Approve the User Account Control prompt.
    
2.  In the left pane, go to `HKEY_CLASSES_ROOT\Directory\Background\shell`. Right-click **shell**, choose **New > Key**, and name it `OpenPowerShellHere`.
    
3.  With `OpenPowerShellHere` selected, double-click the `(Default)` value in the right pane. Set its data to `Open PowerShell Here` and click OK. This string is the menu label users see.
    
4.  Right-click `OpenPowerShellHere`, choose **New > Key**, and name it `command`.
    
5.  Select the new `command` key and set its `(Default)` value to the line below.
    

```text
powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'
```

Each piece of that command does a specific job. `powershell.exe` launches the shell, `-NoExit` keeps the window open after the startup command finishes, and the [Set-Location cmdlet](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-location) with `-LiteralPath '%V'` moves PowerShell into the exact folder you right-clicked. `-LiteralPath` matters here because the default `-Path` treats characters like `[` and `]` as wildcards, and folder names occasionally contain them.

1.  Optionally, right-click `OpenPowerShellHere` and add a **String Value** named `NoWorkingDirectory` with empty data. This keeps the Shell from injecting a working directory your command does not need, which prevents odd behavior when the verb targets a network path.

### Confirm the Verb Works

But nothing reads these keys yet. The Shell caches its menu state, so restart File Explorer to pick up the change. Run `taskkill /f /im explorer.exe`, then `start explorer.exe`, or right-click **Windows Explorer** in Task Manager and choose **Restart**. The entry now shows up when you right-click the background of any folder.

![Registry Editor verb key](https://adamtheautomator.com/wp-content/uploads/publisher/06efdce8c9fd3596fd49a5bfc8af921700ebda97f88c77ea77f601751ec602c6.png)

## Deploy the Same Action with a .reg File

Clicking through the Registry Editor does not scale past one machine. A `.reg` file is the portable form of the same edit; it is what you hand to a colleague or drop into a login script when the verb has to exist everywhere.

Save the block below as `OpenPowerShellHere.reg`. The `Windows Registry Editor Version 5.00` header is required, `@=` sets a key’s default value, and backslashes in the path stay single (the doubled backslashes you see inside PowerShell strings are a different syntax).

```text
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenPowerShellHere]
@="Open PowerShell Here"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenPowerShellHere\command]
@="powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
```

Double-click the file and confirm the merge, or import it silently with the [reg import](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/reg-import) command:

```text
reg import OpenPowerShellHere.reg
```

`reg import` returns a status code you can branch on, which matters when the same script runs across a fleet: `0` means success and `1` means failure. Check that value before you assume the verb landed, because a merge blocked by permissions fails with no error in a script and loudly in the editor.

* * *

_**Warning: A .reg file is executable content. It writes directly to the registry with whatever privileges you run it under, and a hostile file can register a verb that runs an attacker’s command on any right-click. Treat an untrusted .reg file the way you treat an untrusted .exe, and read the key paths before you merge.**_

* * *

## Build and Remove Actions with PowerShell

When the verb has to be created and removed inside a larger automation run, PowerShell is the tool to reach for. Its cmdlets write the same keys through the registry provider.

The script below creates the per-user version of the “Open PowerShell Here” verb. Writing under `HKCU:\Software\Classes` needs no elevation and has no effect on other users of the machine.

```powershell
$verbPath = 'HKCU:\Software\Classes\Directory\Background\shell\OpenPowerShellHere'

New-Item -Path $verbPath -Force | Out-Null
Set-ItemProperty -Path $verbPath -Name '(default)' -Value 'Open PowerShell Here'

New-Item -Path "$verbPath\command" -Force | Out-Null
Set-ItemProperty -Path "$verbPath\command" -Name '(default)' `
  -Value "powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
```

`New-Item` with `-Force` creates the key and every missing parent key in one call, so you don’t walk the path level by level the way the Registry Editor made you. The default value of a registry key is addressed by the literal name `'(default)'`, which is the same value the editor shows you at the top of the right-hand pane.

Remove the verb with the [Remove-Item](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-item) cmdlet and the `-Recurse` flag, which deletes the `command` subkey along with its parent:

```powershell
Remove-Item -Path 'HKCU:\Software\Classes\Directory\Background\shell\OpenPowerShellHere' -Recurse -Force
```

* * *

_**Pro Tip: Before you delete a verb with a script, export it with _**`reg export "HKCU\Software\Classes\Directory\Background\shell\OpenPowerShellHere" verb-backup.reg`**_. The export costs one second and gives you a one-line restore path if the reviewer or the user wants the entry back.**_

* * *

### Per-User or Machine-Wide?

The choice of hive is a real decision. `HKEY_CLASSES_ROOT` is a merged view: Windows combines `HKEY_LOCAL_MACHINE\Software\Classes` (machine-wide) with `HKEY_CURRENT_USER\Software\Classes` (per-user). That merge is why you can add a verb without an admin account by writing to `HKCU`; it is also why a machine-wide verb can disappear for one user who has a conflicting per-user entry.

| Hive | Scope | Elevation | Use when |
| --- | --- | --- | --- |
| `HKCU\Software\Classes` | Current user only | None | Personal workflow, no admin rights, quick testing |
| `HKLM\Software\Classes` (via `HKCR`) | Every user on the machine | Admin | Shared build image, kiosk, help-desk machines |

Register the verb in a single hive. When the same verb exists in `HKCU` and `HKLM` with different display text, Windows shows the per-user copy and hides the machine copy, which produces duplicate-looking entries and confused users.

## Target Files, Folders, Backgrounds, and File Types

Changing the target key changes the scope; the verb body stays the same. The most useful non-obvious target is `SystemFileAssociations`, which binds a verb to a file extension rather than to a program that claims the extension. That distinction matters because ProgID keys get rewritten whenever a user changes which app opens a file type, and a verb parked on a ProgID disappears when the association moves.

This `.reg` snippet adds an “Open in Notepad” entry to every `.log` file, surviving association changes:

```text
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\.log\shell\OpenInNotepad]
@="Open in Notepad"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.log\shell\OpenInNotepad\command]
@="notepad.exe \"%1\""
```

That’s the whole pattern for file-type verbs: swap the target key from `*\shell` to `SystemFileAssociations\.ext\shell`, keep the verb-and-command structure, and leave `%1` in place to receive the clicked file.

### Handling Multiple Selected Files

Select five files before you right-click, and a verb that expects `%1` sees only one of them. The entry may not appear at all when the verb’s selection model disagrees with the number of selected items. Learn documents the rule directly: “When the number of items selected does not match the verb selection model or is greater than the default limits outlined in the following table, the verb fails to appear.” The [verb selection model](https://learn.microsoft.com/en-us/windows/win32/shell/how-to-employ-the-verb-selection-model) is set with a `MultiSelectModel` value on the verb key.

| `MultiSelectModel` value | Behavior |
| --- | --- |
| `Single` | Verb supports exactly one selected item |
| `Player` | Verb supports any number of items |
| `Document` | Verb creates a top-level window for each item |

To act on the entire selection, set `"MultiSelectModel"="Player"` on the verb key and use the `%*` token in the command string instead of `%1`. Leave `MultiSelectModel` unset and Windows infers one from the verb implementation type, which is rarely the model you wanted for a hand-written registry verb.

## Add an Icon and a Shift + Right-Click Action

A verb without an icon blends into a list of text entries, and a verb that every user sees on every right-click adds clutter. The `Icon` value and the `Extended` value each fix one of those problems.

Add `Icon` as a string value on the verb key. The data is either a full path to an executable or DLL, optionally followed by a resource index:

```text
"Icon"="C:\\Program Files\\PowerShell\\7\\pwsh.exe"
"Icon"="imageres.dll,-5302"
```

The `-5302` suffix is a resource index rather than a line number, so it points at a specific icon inside the system `imageres.dll`. Point at an executable and Windows uses that program’s first icon.

To keep a rarely used verb off the standard menu and show it only when the user holds Shift, add an `Extended` string value with no data. Learn spells out both the mechanism and the empty-value requirement: “To define a verb as extended, add an “extended” REG\_SZ value to the verb’s subkey. The value should not have any data associated with it.” The [extended verbs documentation](https://learn.microsoft.com/en-us/windows/win32/shell/how-to-define-extended-verbs) confirms the entry stays hidden until the SHIFT key is held during the right-click. Add the value and the verb moves itself into the second tier without changing the command that runs.

## Restore the Classic Windows 10 Context Menu

Sometimes you want the entire old menu back rather than one new verb. The Windows 11 redesign traded the long, low-use menu for a shorter one with the common commands near the pointer. The [Windows Developer Blog](https://blogs.windows.com/windowsdeveloper/2021/07/19/extending-the-context-menu-and-share-dialog-in-windows-11/) describes the redesign and concedes the cost in its own words: “The menu is exceptionally long. It has grown in an unregulated environment for 20 years, since Windows XP, when IContextMenu was introduced.” The same post explains that “Show more options” loads the Windows 10 menu as-is for the commands that didn’t move.

Microsoft engineers and users confirm the same `reg add` form in a [Microsoft Q&A walkthrough](https://learn.microsoft.com/en-us/answers/questions/2287432/article-restore-old-right-click-context-menu-in-wi), which is the closest thing to an official source for the technique.

You can force that legacy menu to be the default by masking the COM object that renders the modern one. Windows looks up the modern menu handler by its CLSID, `{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}`. An empty `InprocServer32` value under `HKEY_CURRENT_USER` masks that handler; the Shell then falls back to the classic menu for your account only.

```text
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
```

`/f` overwrites without a prompt, and `/ve` targets the key’s default value and leaves it blank. The value has to be strictly empty, with no spaces. Restart File Explorer so it re-reads the CLSID:

```text
taskkill /f /im explorer.exe
start explorer.exe
```

### Undo the Override

To return to the modern menu, delete the key you created and restart File Explorer again:

```text
reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
```

* * *

_**Reality Check: This override is unofficial. Microsoft documents the modern menu and the IExplorerCommand path. The CLSID mask appears in community and Q&A writeups instead, so a future feature update can reset it without warning. Treat the classic menu as a per-user preference you may have to reapply.**_

* * *

## Why Your Action Hides Under “Show More Options”

Here is the part that surprises people who add their first registry verb on Windows 11: it doesn’t appear in the compact menu at all. It appears under **Show More Options**. The reason is architectural. The modern menu only lists commands that arrive through the new framework; a hand-written registry verb doesn’t use that framework.

Windows 11 apps extend the modern menu by implementing the `IExplorerCommand` interface and registering the command with application identity, either as a packaged app or through a [sparse package](https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/grant-identity-to-nonpackaged-apps) that gives an unpackaged Win32 app an identity. Learn is explicit about the split: “Use Show more options only to inspect legacy context-menu extensions. A command registered through `windows.fileExplorerContextMenus` and implemented with `IExplorerCommand` appears in the Windows 11 context menu.”

But a registry verb is a legacy extension, so it lands in the legacy menu. Two real choices follow. You can restore the classic menu with the CLSID override above and see every registry verb on the first right-click, or you can accept the modern menu and reach your registry verbs through **Show More Options** or the Shift+F10 keyboard shortcut. A third path, registering the command through a packaged manifest, only makes sense if you already ship your software as MSIX or are willing to build and maintain the COM DLL that `IExplorerCommand` requires.

## Troubleshoot and Remove a Custom Action

Most context menu problems fall into a small set of causes; each one has a specific fix.

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| Verb never appears | Registered under the wrong target key | Move it to `Directory\shell`, `Directory\Background\shell`, or `*\shell` as appropriate |
| Visible only under Show More Options | The verb uses the legacy registry model | Expected on Windows 11; restore the classic menu or ship a packaged command |
| Runs but the window closes instantly | Missing `-NoExit`, or the executable path is wrong | Add `-NoExit` and use the full path to the executable |
| Works on one file, hidden on many | Verb expects `%1` and no `MultiSelectModel` is set | Use `%*` and set `MultiSelectModel` to `Player` |
| Fails only on paths with spaces | Unquoted `%1` or `%V` | Wrap every placeholder in quotes inside the command string |
| Entries duplicate | Same verb registered in `HKCU` and `HKLM` | Delete the per-user copy, or the machine copy, but not both |
| Classic menu reverts after an update | Feature update reset the CLSID mask | Reapply the `reg add` command from the classic menu section |

### Remove a Verb Cleanly

When you are done with a verb, remove it cleanly. In the Registry Editor, select the verb key and delete it, which removes its `command` subkey too. From a script, delete by path:

```powershell
Remove-Item -Path 'HKCU:\Software\Classes\Directory\Background\shell\OpenPowerShellHere' -Recurse -Force
```

For a machine-wide verb, delete the matching key under `HKLM\Software\Classes\Directory\Background\shell` from a prompt running as administrator. Verify the removal by right-clicking the target and confirming the entry is gone, and by running the [Get-Item](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-item) cmdlet against the path, which should now return a not-found error rather than the key.

## Keep the Menu Under Control

The context menu is one of the few parts of Windows you can shape to match how you work; the registry gives you direct control over it. A few keys under `HKEY_CLASSES_ROOT`, driven by `.reg` files or PowerShell, cover most of what you’ll ever want: an “Open PowerShell Here” on the folder background, a file-type action that survives association changes, an icon so the entry is recognizable, and a Shift modifier so it stays out of the way.

Decide on three things before you deploy anything across a fleet. Pick the hive deliberately, because per-user verbs are safe and reversible while machine-wide verbs need elevation and affect everyone. Pick the narrowest target key that solves the problem, since a verb on `*\shell` shows up everywhere. And keep a `.reg` export of every change you make, so removal is a single import away.

For the mechanics behind all of this, the Win32 shell documentation is the authoritative reference: [Verbs and File Associations](https://learn.microsoft.com/en-us/windows/win32/shell/fa-verbs) for how the Shell resolves verbs, and the predefined shell objects reference in that same documentation set for the full table of target subkeys. Read both once and the registry stops being a set of keys you avoid changing and becomes one you extend deliberately.

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fautomate-windows-11-context-menu-registry%2F&text=Automate%20Windows%2011%20Context%20Menu%20Actions%20with%20Registry)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fautomate-windows-11-context-menu-registry%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fautomate-windows-11-context-menu-registry%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/publisher/3f95d9c85b2b81d9a96fd378dc47c60a/121705eb357e56699bca0c73e19055d636ddcfdd7418053591d9dbf69af050e2.jpg)

### [Audit Every SMB Share Permission with Get-SmbShareAccess](/audit-smb-share-permissions-powershell/)

Audit SMB share permissions with Get-SmbShareAccess, flag Everyone and Full Control grants, and check the NTFS ACL before you revoke anything.

![](https://adamtheautomator.com/wp-content/uploads/publisher/3f95d9c85b2b817aab5dca59f1ca0e14/38378bffb6e067df12a1bd90a3921833213a6e328f7d3baabd1fae698d38ddfd.jpg)

### [Fix Kerberos Clock Skew Logon Failures Using w32tm](/fix-kerberos-clock-skew-w32tm/)

Fix Kerberos clock skew logon failures by checking w32tm sources, pointing the PDC emulator at NTP, and resyncing drifted clients.

![](https://adamtheautomator.com/wp-content/uploads/publisher/3f95d9c85b2b81798ecbd4ce17ad4211/3af27311d4ef00790ee9d17c229fa6097b6ee8b242b0a21e0b024c9807f61639.jpg)

### [Who Really Restarted Windows Server? Event ID 1074 and 6008](/event-id-1074-windows-server-restart/)

Use one Get-WinEvent filter to find which account, process, and reason restarted a Windows Server, from Event ID 1074 and 6008 logs.

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
