Computer Property for Office OLK folder

(imported topic written by amagewick91)

I am trying to get this relevance to work, and I feel that I am forgetting something very simple in order for it to work. I want to search the Temporary Internet Folder on the locally logged on user for a folder that starts with “OLK”. The first relevance shown below does work, but I have my user ID populated within it for testing purposes.

Now I want to substitute the “IS00AMM” with a second relevance “name of current user” so that it takes the logged on user and dynamically puts it in the path.

When I add “name of current user” into the first relevance, it does not find the folder. The 2nd relevance below should find the folder “C:\Documents And Settings\IS00AMM” as a folder, and should report “TRUE”. What am I forgetting? :slight_smile:

----1----

Q: if exists folder whose (name of it contains “OLK”) of folder “c:\documents and settings\IS00AMM\Local Settings\Temporary Internet Files” then name of folder whose (name of it contains “OLK”) of folder “c:\documents and settings\IS00AMM\Local Settings\Temporary Internet Files” as string else “N/A”

A: OLK12

----2----

Q: exists folder “c:\documents and settings{name of current user}”

A: False

(imported comment written by cstoneba)

what I would do is just look up what the actual folder is by searching the registry. The issue here is that this location changes per Outlook version (http://www.groovypost.com/howto/microsoft/outlook/find-the-microsoft-outlook-temporary-olk-folder/)

You could do something like this, but again, you would need to get the logged on users hive instead of the current user, because current user is SYSTEM (because that is what BigFix runs under) and not the actual logged on user.

value “OutlookSecureTempFolder” of key “HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security” of registry

(imported comment written by amagewick91)

Well my test isn’t even working, so I am putting it in there improperly. “name of current user” is what BES uses for “User name”, and that doesn’t say SYSTEM for each computer. I would think this is the one to use, and that I just have to figure out how to properly put it in the relevance.

How can I put a relevance inside of a relevance?

Am I incorrect in the way that I am seeing this? I understand that the service runs as SYSTEM, but again the “User Name” property lists who is actually on the computer and not system.

(imported comment written by amagewick91)

FIXED!!!

if exists folder whose (name of it contains “OLK”) of folder (“c:\documents and settings” & name of current user & “\Local Settings\Temporary Internet Files”) then name of folder whose (name of it contains “OLK”) of folder (“c:\documents and settings” & name of current user & “\Local Settings\Temporary Internet Files”) as string else “N/A”

I looked at action script and used the same logic

(imported comment written by cstoneba)

one thing to add, this will obviously fail if there is no current user, so either in your relevance of the action, or within your If statment, I would put in someting like “exists current user”

(imported comment written by amagewick91)

Will do! Thanks for the heads up