Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


OutlookSecureTempFolder change script

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1185
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> OutlookSecureTempFolder change script
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 OutlookSecureTempFolder change script - 7/27/2004 9:03:07 AM   
  ChrisMB

 

Posts: 1
Score: 0
Joined: 7/27/2004
From: New Zealand
Status: offline
Hi Folks!
I'm a newbie to scripting but this is what I'm trying to do...and my script so far:

I am trying to write a script for a corporate environment that will change the default location for Outlook attachments from
C:\Documents and Settings\username\Local Settings\Temporary Internet Files\OLK**
to point to the User profile Temp directory (eg. C:\Documents and Settings\username\Local Settings\Temp\OLK**)

If I use the environment variable %USERPROFILE% Outlook reverts to the default directory (Temporary Internet Files), but if I specify the username, it will work.
The script so far:
----------------------------------------------------------------------

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Office\9.0\Outlook\Security", 1

,"REG_EXPAND_SZ"
WshShell.RegWrite

"HKCU\Software\Microsoft\Office\9.0\Outlook\Security\OutlookSecureTempFolder",

"%USERPROFILE%\Local Settings\Temp\OLK8\"

----------------------------------------------------------------------

I don't want to specify the username because I need to run this on about 40 pc's. Does anyone have any idea how I can get around this? It would be much appreciated!

Regards,

Chris
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> OutlookSecureTempFolder change script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts