Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 16th, 2012  |  syntax: DOS  |  size: 0.80 KB  |  views: 240  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. TITLE Outlook 2007/2010 settings importer
  2.  
  3. :: This script adds an .xml file to the Outlook autodiscovery directory so that when a user creates an account they do not have to enter server settings.
  4. :: This script has to be run on startup so it has system privledges, or it won't work.
  5.  
  6. :: First, we need to copy the .xml file to the appropriate directory.
  7.  
  8. robocopy "\\server\path\to\xml"  "C:\Program Files\Microsoft Office\Office14\OutlookAutoDiscover"
  9.  
  10. :: Second, we need to tell Outlook where this file is located.
  11.  
  12. REG ADD "HKCU\Software\Microsoft\Office\14.0\Outlook\AutoDiscover" /v <YOURDOMAIN.LOCAL> /t REG_SZ /d "C:\PROGRA~1\MICROS~2\Office14\OUTLOO~1\<XMLFILE>.XML" /f
  13.  
  14. :: Now, when a user opens Outlook for the first time and enters their details, no futher configuration should be required.
  15.  
  16. exit
clone this paste RAW Paste Data