Hi Team ,
i’m wondering how can i run a command or powershell that set something under “HKEY_CURRENT_USER”
Hi Team ,
i’m wondering how can i run a command or powershell that set something under “HKEY_CURRENT_USER”
@hazem, please refer to the registry commands wiki for additional details. Additionally, you can deliver and execute OS native scripts using the prefetch and execution commands.
If you mean you want to run a command in a context of a specific user, use override (https://developer.bigfix.com/action-script/reference/execution/override.html).
In case the target user is logged on, you use override with
runas=currentuser
If you need to run a command in a context of specific user even when that user is not logged on, use override with
runas=localuser
user=(local or domain user)
password=required
You can also try using relevance for the current user. Something like
regset "[{user key of logged on user}\]"
Also may want to look into using the runascurrentuser.exe if nothing else seems to work for you.
thank you so much , this did the trick for me