Hi,
i need to run some registry manipulations for keys under the HKCU hive, and i came across an issue.
These days that many users use RDP to connect to their office machines brings into focus the “Current user” (which is the console user) Vs. “Logged on user” (which also includes RDP users).
So i created this fixlet to run:
action uses wow64 redirection false
delete __createfile
delete ZimRegFix.reg
createfile until @endregfile
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Resiliency\DisabledItems]
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Resiliency\DoNotDisableAddinList]
"Zignature"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\Zignature]
"LoadBehavior"=dword:00000003
@endregfile
move __createfile ZimRegFix.reg
prefetch RunAsCurrentUser.exe sha1:ee47505ebfb2790b9da8a20ed70e67158e9753d0 size:342528 http://software.bigfix.com/download/bes/util/RunAsCurrentUser-2.0.3.1.exe sha256:1a9b518c775e2a85a7c47801e9b8221df338a65ad8df326485e4cd2aea22fe52
utility __Download\RunAsCurrentUser.exe
waithidden "__Download\RunAsCurrentUser.exe" --w regedit /s "ZimRegFix.reg"
when i run this fixlet the log exits with exit code -1:
Command succeeded (Exit Code=-1) waithidden "__Download\RunAsCurrentUser.exe" --w regedit /s "ZimRegFix.reg" (action:369489)
but the action is not actually done (no changes in the registry)
if i run the REG file directly from _C:\Program Files (x86)\BigFix Enterprise\BES Client_BESData\CustomSite_Workstations\ZimRegFix.reg, the action executes successfully. (Registry keys changed)
the test computer has a “logged on user”, but not “current user”:
q: name of current user
E: Singular expression refers to nonexistent object.
q: names of logged on users
A: <name of RDP user>
T: 1.691 ms
I: plural string
so how can i run a REG key for logged on user, as opposed to Current user?
My environment is still 9.5.8, if that matters.
sorry for the long post