Skip to content
Menu
The Lonely Administrator
  • PowerShell Tips & Tricks
  • Books & Training
  • Essential PowerShell Learning Resources
  • Privacy Policy
  • About Me
The Lonely Administrator

Configure SysInternals EULA Acceptance

Posted on August 24, 2022August 24, 2022

I just saw a very, very handy thing on Twitter where you can set a registry key that will automatically accept all EULA prompts for the SysInternals tools. I know there is a command-line switch I can use, but I never remember to use it. Setting the registry key appears to accept EULAs globally. Naturally, I wanted a PowerShell script I could run.

Manage and Report Active Directory, Exchange and Microsoft 365 with
ManageEngine ADManager Plus - Download Free Trial

Exclusive offer on ADManager Plus for US and UK regions. Claim now!
#set global EULA acceptance for SysInternals tools

[CmdletBinding(SupportsShouldProcess)]
Param([switch]$Passthru)

$regPath = "HKCU:\Software\Sysinternals"
Set-ItemProperty -Path $regPath -Name "EulaAccepted" -Value 1 -Force
if ($Passthru) {
    Get-ItemProperty -Path $regPath -Name EulaAccepted
}

This is a script file that supports -Whatif. Since the setting is for the current user, no elevation is required.

PS C:\> C:\scripts\Set-SysInternalsEula.ps1 -WhatIf
What if: Performing the operation "Set Property" on target "Item: HKEY_CURRENT_USER\Software\Sysinternals Property: EulaAccepted".
PS C:\> C:\scripts\Set-SysInternalsEula.ps1 -Passthru

EulaAccepted : 1
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Sysinternals
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software
PSChildName  : Sysinternals
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry

Run the script and then run your Sysinternal tool. The effect is immediate. Enjoy!


Behind the PowerShell Pipeline

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading...

Related

3 thoughts on “Configure SysInternals EULA Acceptance”

  1. Pingback: Configure SysInternals EULA Acceptance - The Lonely Administrator - Syndicated Blogs - IDERA Community
  2. Pingback: SysInternals EULA Acceptance in Powershell – Curated SQL
  3. Jeremiah says:
    August 30, 2022 at 8:54 am

    Hey, this is great. Never even gave it a second thought but now that I know I can turn it off I notice every time….

Comments are closed.

reports

Powered by Buttondown.

Join me on Mastodon

The PowerShell Practice Primer
Learn PowerShell in a Month of Lunches Fourth edition


Get More PowerShell Books

Other Online Content

github



PluralSightAuthor

Active Directory ADSI Automation Backup Books CIM CLI conferences console Friday Fun FridayFun Function functions Get-WMIObject GitHub hashtable HTML Hyper-V Iron Scripter ISE Measure-Object module modules MrRoboto new-object objects Out-Gridview Pipeline PowerShell PowerShell ISE Profile prompt Registry Regular Expressions remoting SAPIEN ScriptBlock Scripting Techmentor Training VBScript WMI WPF Write-Host xml

©2026 The Lonely Administrator | Powered by SuperbThemes!
%d