/build/static/layout/Breadcrumb_cap_w.png

Return SID as custom inventory item

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?


0 Comments   [ + ] Show comments

Answers (1)

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.
Posted by: mpace 10 years ago
Red Belt
1

Import the following registry setting before running the tool:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Sysinternals\PsGetSid] "EulaAccepted"=dword:00000001

Comments:

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ