Link to home
Start Free TrialLog in
Avatar of Kyle Davies
Kyle DaviesFlag for South Africa

asked on

Set Outlook Express Default Send & Receive Time

I want to now if there is a way that i can set Outlook express over a 100 PC's to send and receive every 1 minute?

So is there a quicker way than going to every PC and setting it manually?
Avatar of David Paris Vicente
David Paris Vicente
Flag of Spain image

Your PC´s belong to a domain?
Do you have GPO´s running on your infra-structure.

Probably you have to make a script to change the reg keys for your default email.
The script or GPO is the fastest way to accomplish that.

Regards
Avatar of Kyle Davies

ASKER

@granwizzard Yes it is on a domain and we do have GPO, if you can tell me where in the registry it is i will test it. I have looked through the registry and could not find anything.
Check this site and see if help you: http://www.intelliadmin.com/index.php/2007/10/set-the-default-email-client-across-your-network/


You can change this key: HKEY_LOCAL_MACHINE\Software\Clients\Mail

But this is gone affected all the users because the settings are gone be applied to the machine and not the user.

I hope this can help you achieve what you want.

You can applied this to your default domain policy or to the  OU policy that affects
only the machines that you want.

I advise you to create a OU and put in it some machines just to test it before deploy to all the domain.

Regards.
Here is a pic with what i want done circled in black.User generated image
Because Outlook express is coming with IE the GPO´s has a few tweaks and you cant´do what you want.

You have to travel down the registry tree to \HKEY_CURRENT_USER\­Identities

Open your Outlook Express store folder and make note of the random string that signifies your identity.

It should look something like "{63682237-R041-496B-8388-091T5LS7348F}" and is located in the path of your store folder.
Go back to regedit.

Continue digging deeper into the tree by selecting {your identity string}\­Software\­Microsoft\­Outlook Express\5.0.

Below this key you can find all of your Windows Mail or Outlook Express settings.

After this you have to make a script to get the sid user´s and tweak the key with the options you want.

If you use the OE check your registry just to see if you have the settings on that location, because i have Win7 and don´t use OE i can´t check it that for you.
Ok i have tested it and it is working!

Now how will i go about creating a script to get the logged on users sid and inserting the sid into the .reg file and import that?
Maybe is another way to accomplish that.

Threw a logged on script.

Can you put here all the path of that registry key?
Something like this:
Windows Registry Editor Version 5.00

[HKEY_USERS\S-1-5-21-3914271219-339746903-3849458114-1331\Software\Microsoft\Outlook Express]

[HKEY_USERS\S-1-5-21-3914271219-339746903-3849458114-1331\Software\Microsoft\Outlook Express\5.0]

[HKEY_USERS\S-1-5-21-3914271219-339746903-3849458114-1331\Software\Microsoft\Outlook Express\5.0\Shared Settings]

[HKEY_USERS\S-1-5-21-3914271219-339746903-3849458114-1331\Software\Microsoft\Outlook Express\5.0\Shared Settings\Setup]
"MigToLWP"=hex:12,28,df,50,17,b1,4c,4b,86,60,12,4c,65,67,5e,07
"MigToLWPVer"="6,0,2900,5512"
Hi

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Identities\{25063C4C-8003-48CA-89C5-5C716BFBED27}\Software\Microsoft\Outlook Express\5.0\Mail]
"Welcome Message"=dword:00000000
"Accounts Checked"=dword:00000001
"Safe Attachments"=dword:00000001
"Secure Safe Attachments"=dword:00000001
"PlaySoundOnNewMail"=dword:00000001
"Poll For Mail"=dword:0000ea60
"Check Mail on Startup"=dword:00000001
"SaveInSentItems"=dword:00000001
"Auto Add Replies To WAB"=dword:00000001
"Include Reply Msg"=dword:00000001
"Send Mail Immediately"=dword:00000001
"Message Send HTML"=dword:00000001
"ThreadArticles"=dword:00000000
"Saved Toolbar Settings"=hex:11,9e,00,00,f0,9c,00,00,f1,9c,00,00,f4,9c,00,00,\
  ff,ff,ff,ff,b4,9c,00,00,f2,9d,00,00,ff,ff,ff,ff,01,9d,00,00,ff,ff,ff,ff,07,\
  9d,00,00,c4,9c,00,00
"Saved Toolbar Settings Version"=dword:00000011
"ShowHybridView"=dword:00000001
"Show Header Info"=dword:00000001
"SplitDir"=dword:00000000
"SplitHorzPct"=dword:00000032
"SplitVertPct"=dword:00000032
"Default_CodePage"=dword:00006faf
I believe this what you want

Set WSHShell = CreateObject("WScript.Shell")
Set WSHNetwork = CreateObject("WScript.Network")

 Dim wmiQuery : wmiQuery = "Select * From Win32_UserAccount Where Domain='" & WSHNetwork.UserDomain & _
                           "' And Name='" & WSHNetwork.UserName & "'"
 Dim objWMIService : Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
 Dim colItems : Set colItems = objWMIService.ExecQuery(wmiQuery)
 Dim objItem
 Dim UserSID



 For Each objItem in colItems
     WScript.Echo "Your SID is : " & objItem.SID '->This line can be delete after you checked that this is user SID
     UserSID= objItem.SID

     set WshShell = WScript.CreateObject ("WScript.SHell")

     WshShell.regwrite "HKEY_CURRENT_USER\Identities\"& UserSID &"\Software\Microsoft\Outlook Express\5.0\Mail\"&"Accounts Checked",1,"DWORD"
next


If the key value is not corrected one you just have to change to the key value for what you want.

Please check before with your user.

Just a question i believe that the settings of OE are in HKU but you wrote the HKCU, this is correct?

I don´t had time to full test but this is the way.

Regards
I will test it, thats not a problem at all, yes the settings are saved in HKCU we have tested it by setting it up on 1 PC to send and Receive every one minute and exported it, then we edited the .reg file and i put in my SID and imported it and it changed it to send and receive every one minute.
ASKER CERTIFIED SOLUTION
Avatar of David Paris Vicente
David Paris Vicente
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This will be the value that changed "Poll For Mail"=dword:0000ea60 "For 1 Minute"

"Poll For Mail"=dword:001b7740 "30 Minutes"
So it will be like this.

WshShell.regwrite "HKEY_CURRENT_USER\Identities\"& UserSID &"\Software\Microsoft\Outlook Express\5.0\Mail\"&"Poll For Mail",0000ea60,"DWORD"


Please check on you registry if the flag is DWORD or REG_DWORD and change the last parameter .

i Hope this helps.

Regards.
Ok we have changed it as you have stated and when it runs we get this error message User generated image
You are using an integer or hexadecimal value?