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?
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.