RunAsCurrentUser.exe and DOS commands

(imported topic written by Matt.Johnson)

Hello everyone.

I have worked with RunAsCurrentUser before to no avail. I need to use it now, so I am asking for your help.

PURPOSE

I need to modify (DELETE/ADD) keys to a HKLU registry value using BigFix,

ACTION:

// PREFETCHING RunAsCurrentUser From IBM Share

prefetch RunAsCurrentUser.exe sha1:ee47505ebfb2790b9da8a20ed70e67158e9753d0 size:342528 http://software.bigfix.com/download/bes/util/RunAsCurrentUser-2.0.3.1.exe

utility __Download\RunAsCurrentUser.exe

waithidden __Download\RunAsCurrentUser.exe DOS “REG DELETE HKEY_CURRENT_USER\Software*REDEACTED* /v REDACTED /f”

RESULTING ERROR

Command failed (Thread execution failed (2))

I would greatly appreciate any assistance that you can provide.

Thank you,

Matt Johnson

1

(imported comment written by jgstew)

You can’t use “DOS” after the “RunAsCurrentUser.exe”, you should instead call “REG” directly, but you might need the full path to it.

Also, I would recommend using Local GPO instead, similar to this:
http://bigfix.me/fixlet/details/3747