Sunday, October 2, 2022
HomePowershellConfigure SysInternals EULA Acceptance • The Lonely Administrator

Configure SysInternals EULA Acceptance • The Lonely Administrator


I simply noticed a really, very useful factor on Twitter the place you possibly can set a registry key that may routinely settle for all EULA prompts for the SysInternals instruments. I do know there’s a command-line change I can use, however I by no means bear in mind to make use of it. Setting the registry key seems to just accept EULAs globally. Naturally, I needed a PowerShell script I might run.

Handle and Report Energetic Listing, Alternate and Microsoft 365 with
ManageEngine ADManager Plus – Obtain Free Trial
#set world EULA acceptance for SysInternals instruments

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

$regPath = "HKCU:SoftwareSysinternals"
Set-ItemProperty -Path $regPath -Title "EulaAccepted" -Worth 1 -Power
if ($Passthru) {
    Get-ItemProperty -Path $regPath -Title EulaAccepted
}

It is a script file that helps -Whatif. For the reason that setting is for the present consumer, no elevation is required.

PS C:> C:scriptsSet-SysInternalsEula.ps1 -WhatIf
What if: Performing the operation "Set Property" on course "Merchandise: HKEY_CURRENT_USERSoftwareSysinternals Property: EulaAccepted".
PS C:> C:scriptsSet-SysInternalsEula.ps1 -Passthru

EulaAccepted : 1
PSPath       : Microsoft.PowerShell.CoreRegistry::HKEY_CURRENT_USERSoftwareSysinternals
PSParentPath : Microsoft.PowerShell.CoreRegistry::HKEY_CURRENT_USERSoftware
PSChildName  : Sysinternals
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.CoreRegistry

Run the script after which run your Sysinternal software. The impact is rapid. Get pleasure from!





RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments