Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Outlook 2003 Temp location 1

Status
Not open for further replies.

Hellooooooooo

Technical User
Oct 21, 2005
66
GB
Hello everyone.

I'm trying to change the settings of the Outlook temp file that each user has.

Here's the plot. We have Win2k Workstations with Office 2003 Pro installed connecting to a Exchange 5.5. When a user gets a email with an attachment, they double click on the attachment and open it. A copy of the file is saved in the users Temp location e.g.

C:\Documents and Settings\Marty\Local Settings\Temporary Internet Files\OLK### with 3 random numbers after OLK.

What I want to do is change the location to D:\Documents and Settings\Marty\Local Settings\Temporary Internet Files\OLK###. This way they will not be using up the space on the C Drive and stopping the virus scanner running.

I’ve had a look at the registry and tried to use the logon.vbs to write the following:

strKey="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Cache"
objShell.RegWrite strKey, "D:\Documents and Settings\499465g\Local Settings\Temporary Internet Files", "REG_SZ"

It changes the entry in the registry, however files are still saved onto the C: Drive.

Has anyone else played with this idea, or know of a better solution.

As it's Friday afternoon, I'm going to do runner while it's all looking good.

Have a good weekend everyone.

Laters

Marty
 
Hellooo everyone,

Mintjulep,

Ive had a look at the download, I'm not allowed to run freeware or anything that our software support company dont give us. It looks like the tool needed but I'm still stuck with delivering updates via script.

Tony,

I had a quick look at the OLK folders, on my PC I have 14, just about 1 for each person that logs on. A quick look at the PC in our office show the same sort of number of OLK folders. Is this an install option, or something that Outlook should be doing?

Cheers All

Marty
 
I just assumed that they should be deleted because so many people lose edits they have made when opening attachments instead of saving them first, and as far as I know, mine are. My apologies if I'm incorrect; I'll have to look into it further.

If you start here - - you should be able to find out how to change the registry for what you want.

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

Professional Office Developers Association
 
Hello Tony,

That looks like the gem I'm after. I will have a bash at it in the morning using the registry entry.

Cheers fella

Marty
 
Hello everyone.

I tried changing the registry like the slipstick web site showed, however this did not work. I've found the Registry entry that I need to alter:

strKey="HKCU\Software\Microsoft\Office\11.0\Outlook\Security\OutlookSecureTempFolder"

objShell.RegWrite strKey, "D:\Documents And Settings\%UserName%\Local Settings\Temporary Internet Files", "REG_EXPAND_SZ"

I have a logon script in vbs that sets loads of settings on logon. Im stuck now, Ive changed the Drive to D:, however I can tink how to get the %UsernName% to pick up the current loggen on user. With out this it's doing me head in.

One for the scrip gods out there i think.

Cheers

Marty
 
I don't know about these things so this is not definitive but ..

On my Vista system there is a key HKCU\Volatile Environment\ with a value USERNAME

Alternatively is Environ("UserName") available in your script?

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

Professional Office Developers Association
 
Hello Tony.

Did the key entry with %username%. It writes the string with %username% so does not work. As to the Environ("UserName"). I'm not the best a scripts. It's not called at the top of the script, so no. I will have a look to see how to put this into thr script, then how to use it.

Cheers

Marty
 
I looked in XP and, although it had a Volatile Environment key, it didn't contain a UserName value. The Username must be somewhere in the registry but I don't know where.

If you don't have Environ, can you do this? ...

Code:
Set obj = CreateObject("Wscript.Network")
UserName = obj.UserName
Set obj = Nothing

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

Professional Office Developers Association
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top