none
Custom Administrative Template does not create registry keys RRS feed

  • Question

  • Hi All,

    I hope I have the correct forum. I am working with an organisation at the moment attempting to highlight some of the benefits of Group Policy and I'm running into a snag. 

    I have an inhouse application that requires groups of computers to have the same settings for the application to function and I am trying to create and set these via an Administrative Template.

    I am somewhat constrained by some of the technologies. My limitations are:

    * Windows Server 2003 SP1 Domain Controllers with a Win2k domain (renewal project is underway)

    * Windows XP (SP0/1/2/3) and Win2003 clients (renewal project is underway) 

    * Unable to install GPP on the clients

    * Application is not packaged or deployed by Group Policy. The current method involves copying the files, registering some dlls and running a *.reg file (the bit I want to replace).

    Is this possible?

    If so, my current template loads in to the GP Editor, but does not create the registry keys on the destination computer. Can the ADM file be set up to create the keys.

    My current template (sanitised) is below:

    TIA,

    Jason

    CLASS USER
    CATEGORY "ApplicationSettings"
    
    	KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    	POLICY !!SITE1Policy
    		#if version >= 3
    		EXPLAIN !!PolicyExplain
    		#endif
    		KEYNAME "Software\ApplicationCompany\Site1\Access"
    
    		PART !!ConfigFilePolicy EDITTEXT
    			KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    			VALUENAME ConfigFile
    			DEFAULT !!ConfigFileDefault
    		END PART ;!!ConfigFilePolicy
    
    		PART !!SystemDBPolicy EDITTEXT
    			KEYNAME "Software\ApplicationCompany\Site1\Access"
    			VALUENAME SystemDatabase
    			DEFAULT !!SystemDBDefault
    		END PART ;!!SystemDBPolicy
    
    		PART !!SysConfigPolicy EDITTEXT
    			KEYNAME "Software\ApplicationCompany\Site1\Common Setting"
    			VALUENAME SysConfig
    			DEFAULT !!SysConfigDefault
    		END PART ;!!SysConfigPolicy
    
    		PART !!ArbitrationPolicy EDITTEXT
    			KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    			VALUENAME ConfigPath
    			DEFAULT !!ArbitrationDefault
    		END PART ;!!ArbitrationPolicy
    	END POLICY
    	
    	POLICY !!SITE2Policy
    		#if version >= 3
    		EXPLAIN !!PolicyExplain
    		#endif
    		KEYNAME "Software\ApplicationCompany\Site2\Access"
    
    		PART !!ConfigFilePolicy EDITTEXT
    			KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    			VALUENAME ConfigFile
    			DEFAULT !!ConfigFileDefault
    		END PART ;!!ConfigFilePolicy
    
    		PART !!SystemDBPolicy EDITTEXT
    			KEYNAME "Software\ApplicationCompany\Site2\Access"
    			VALUENAME SystemDatabase
    			DEFAULT !!SystemDBDefault
    		END PART ;!!SystemDBPolicy
    
    		PART !!SysConfigPolicy EDITTEXT
    			KEYNAME "Software\ApplicationCompany\Site2\Common Setting"
    			VALUENAME SysConfig
    			DEFAULT !!SysConfigDefault
    		END PART ;!!SysConfigPolicy
    
    		PART !!ArbitrationPolicy EDITTEXT
    			KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    			VALUENAME ConfigPath
    			DEFAULT !!ArbitrationDefault
    		END PART ;!!ArbitrationPolicy
    	END POLICY 
    END CATEGORY
    
    [Strings]
    ArbitrationDefault =D:\SITE\Data
    ArbitrationPolicy =Arbitration path
    ConfigFileDefault =D:\App\Data\App_Comms.mdb
    ConfigFilePolicy =Application configuration file
    PolicyExplain =Enter Explainition of the Registry settings here
    SysConfigDefault =D:\SITE\Data\SITE1_SYS.mdb
    SysConfigPolicy =Application site system configuration file
    SystemDBDefault =D:\App\Data\App.mdw
    SystemDBPolicy =Application system database path
    SITE1Policy =Site1 Application Settings
    SITE2Policy =Site2 Application Settings
    

    Monday, February 23, 2015 12:54 AM