Know to Set File Association via Group Policy


Recently after installing FAX Server on our site, we are having some problem with opening received FAX file from user desktop. FAX files are .G3N/.G3F/.CTLof which .G3N and .G3F file can be opened in Windows Image Viewer and .CTLfile can be opened in Notepad.
But the problem is, users have to make it their own, or we have to do it manually on all workstation across all branches. But it’s almost impossible to do so, so we have to think about some global solution.

Now we start working on creation a Group policy with which we can easily define default file association for those files and finally we created one.
FileAssociation.ADM


12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
CLASS USERCATEGORY !!category CATEGORY "Default Viewer/Icon for G3N File" KEYNAME "Software\Classes\.g3n\DefaultIcon"  POLICY !!policyg3nicon   EXPLAIN !!explain   PART Default   EDITTEXT   DEFAULT "shimgvw.dll,1"   VALUENAME ""   END PART  END POLICY END CATEGORY  CATEGORY "Default Viewer/Icon for G3N File" KEYNAME "Software\Classes\.g3n\shell\Open\command"  POLICY !!policyg3nview   EXPLAIN !!explain   PART Default   EDITTEXT   DEFAULT "rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %1"   VALUENAME ""   END PART  END POLICY END CATEGORY  CATEGORY "Default Viewer/Icon for G3F File" KEYNAME "Software\Classes\.g3f\DefaultIcon"  POLICY !!policyg3ficon   EXPLAIN !!explain   PART Default   EDITTEXT   DEFAULT "shimgvw.dll,1"   VALUENAME ""   END PART  END POLICY END CATEGORY  CATEGORY "Default Viewer/Icon for G3F File" KEYNAME "Software\Classes\.g3f\shell\Open\command"  POLICY !!policyg3fview   EXPLAIN !!explain   PART Default   EDITTEXT   DEFAULT "rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen %1"   VALUENAME ""   END PART  END POLICY END CATEGORY  CATEGORY "Default Viewer/Icon for CTL File" KEYNAME "Software\Classes\.ctl\DefaultIcon"  POLICY !!policyctlicon   EXPLAIN !!explain   PART Default   EDITTEXT   DEFAULT "C:\WINDOWS\system32\shell32.dll,-152"   VALUENAME ""   END PART  END POLICY END CATEGORY  CATEGORY "Default Viewer/Icon for CTL File" KEYNAME "Software\Classes\.ctl\shell\Open\command"  POLICY !!policyctlview   EXPLAIN !!explain   PART Default   EDITTEXT   DEFAULT "C:\WINDOWS\system32\NOTEPAD.EXE %1"   VALUENAME ""   END PART  END POLICY END CATEGORY END CATEGORY [strings]category="Zita FAX File Associations"policyg3nicon="Set Default Icon for G3N File"policyg3nview="Set default Viewer for G3N File"policyg3ficon="Set Default Icon for G3N File"policyg3fview="Set default Viewer for G3N File"policyctlicon="Set Default Icon for CTL File"policyctlview="Set default Viewer for CTL File"explain="This policy sets the default file association for G3N files and it's default icon. Custom Group Policy - TechnoChat.IN ! By Saugata Datta."
Group Policy Fig -1

Group Policy Fig -2

Comments