How to install Word and LibreOffice templates with a login script on Windows Server

Document Template ImageAfter some research and experimentation, I finally figured out how to push out Word and LibreOffice templates to client computers on a Windows Domain using a few commands in a login script. In our environment, we have a mix of Microsoft Office 2007, Microsoft Office 2010, and LibreOffice 4.x.x. This method seems to work with all three.

To start with, I placed the template files (.dotx and .ott) in a subfolder named templates and placed that within the netlogon folder on the domain controller. That way they are available for copying by the login script.

Here are the lines I added to the login script:

xcopy "\\server\netlogon\templates\Invoice Template.dotx" "%appdata%\microsoft\Templates\" /y
mkdir "%appdata%\LibreOffice\4\user\template"
xcopy "\\server\netlogon\templates\Invoice Template.ott" "%appdata%\LibreOffice\4\user\template" /y

Both destination folders use the %appdata% variable which should work in all modern versions of Windows. The destination folder referenced in the first line is already created when MS Office is installed, so the script just copies the template. The second two lines are for LibreOffice. Since the user templates folder is not created automatically, we first issue a command to create it (this line will harmlessly error out once the folder is already there) and then copy the template.

I’m still testing this in our environment, but it seems to be working well so far. I’ll update and edit this post if/when I notice any problems.

42 thoughts on “How to install Word and LibreOffice templates with a login script on Windows Server

  1. Pingback: Windows Server 2008 Unleashed | Cheap Dedicated Servers

  2. I followed your instruction on to add numbers to footer pages. When I do it I keep getting the word “page number”,
    no number. What do I need to change the settings

  3. Pingback: max

  4. Pingback: Clifton

  5. Pingback: jesus

  6. Pingback: Jesse

  7. Pingback: Vernon

  8. Pingback: stuart

  9. Pingback: Julian

  10. Pingback: marvin

  11. Pingback: carlton

  12. Pingback: Gary

  13. Pingback: Larry

  14. Pingback: Robert

  15. Pingback: Thomas

  16. Pingback: julio

  17. Pingback: rex

  18. Pingback: Wallace

  19. Pingback: sidney

  20. Pingback: Marc

  21. Pingback: todd

  22. Pingback: homer

  23. Pingback: Earl

  24. Pingback: ronnie

  25. Pingback: angel

  26. Pingback: Hugh

  27. Pingback: Austin

  28. Pingback: Mario

  29. Pingback: Brandon

  30. Pingback: eddie

  31. Pingback: Philip

  32. Pingback: Gilbert

  33. Pingback: chester

  34. Pingback: jeff

  35. Pingback: Mathew

  36. Pingback: Alberto

  37. Pingback: tyler

  38. Pingback: Alex

  39. Pingback: Jeffery

  40. Pingback: george

  41. Pingback: Jessie

  42. Pingback: http://21stcenturysmoke.com

Comments are closed.