I want to use the sysinternals tool PsGetsid.exe to pull the SID of a machine and output to a text file to then pull into inventory as a custom inventory object. Pretty simple, but I want PsGetsid to be silent, and right now it comes up with the "Agree" box. I can't figure out the best way to script it whether by KScript or Batch or VBS. Thoughts?

Answer Summary:
Taking and modifying the advice from 'mpace' to "Import the following registry setting[...]" I went ahead and added a batch script (that I converted to silent EXE) that added the "accept EULA" keys for the sysinternals suite of tools that I would like to start using on a regular basis. You wouldn't believe how many people freaked out over a sysinternals agree window. Ha.
0 Comments   [ + ] Show Comments


Please log in to comment



Import the following registry setting before running the tool:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Sysinternals\PsGetSid] "EulaAccepted"=dword:00000001
Answered 08/01/2013 by: mpace
Red Belt

  • This content is currently hidden from public view.
    Reason: Removed by member request
    For more information, visit our FAQ's.
Please log in to comment
Answer this question or Comment on this question for clarity