The easiest way to refer to the user registry is user keys of logged on users
.
q: keys "Printers\Connections" of user keys of logged on users
A: HKEY_USERS\S-1-5-21-1862586638-1684353032-3949902452-1001\Printers\Connections
Iād note that this creation class always uses the native registry path, the 32-bit redirection doesnāt apply to the HKEY_USERS hive.
Iād use it as a plural, as there can be multiple logged-on users at once. So the comparisons are a bit different -
The following should be True if there are no users with the printer connection defined. However itās also True if there is no user logged on at allā¦
q: exists keys whose (value "DisplayName" of it as string contains ",,sup-ap-pwvprint,ACCT7") of keys "Printers\Connections" of user keys of logged on users
A: False
The following should be True if there is any logged on user with the key presentā¦
q: exists logged on users whose (exists keys whose (value "DisplayName" of it as string contains ",,sup-ap-pwvprint,ACCT7") of keys "Printers\Connections" of user keys of it)
The following should be True if there is any logged on user who is missing the keyā¦
q: exists logged on users whose (not exists keys whose (value "DisplayName" of it as string contains ",,sup-ap-pwvprint,ACCT7") of keys "Printers\Connections" of user keys of it)
Also, in the Fixlet Debugger, be sure to select Evaluate -> Evaluate Using -> Local Client, as this has to be evaluated as the LocalSystem account to retrieve another userās registry hive.