Using Sysinternals Console Tools via PowerShell (Part 3)

by Sep 7, 2022

In our previous tips we showed how you can use PowerShell to download, unblock, unzip and then run the Sysinternals console tools from PowerShell. This way you can use tools like psloggedon64.exe to figure out the users that are currently logged on.

However, when you run any Sysinternals tool for the first time, a EULA window pops up that needs to be accepted manually. Not good for completely automated use.

To accept the EULA in an automated way, simply use this code:

$path = "Registry::HKEY_CURRENT_USER\Software\Sysinternals"
$name = 'EulaAccepted'
Set-ItemProperty -Path $path -Name $name -Value 1

Twitter This Tip! ReTweet this Tip!