How to associate a file extension with a specific program for all users in Windows Server 2003

windows-server-2003

We have an installerless program which we want to set up for Windows 2003 terminal server users so that they can just double click it's file extension and that program will open that file by default.

Is there any tool or a clear step-by-step guide for doing this?

Best Answer

I'd use a logon script, as it's easiest way I know to do this.

You can get the details here, but the short version is:

  1. Associate extension with a filetype. For .log files to be associated as a txtfile filetype: assoc .log=txtfile
  2. Associate default program with filetype. For '.log' files to be opened with Notepad: ftype txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1

Replace with your filetype and desired default app, drop into a .bat file, add to startup scripts in a GPO, and you're done.