We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

How do I create a custom ADM template to add registry entries on a user context?

biggytek
biggytek asked
on
Medium Priority
1,137 Views
Last Modified: 2012-05-06
Hello,

I have the following .reg file that I need to assign via group policy on a user based context:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global]
"Auxiliary Work Mode 0"="Aux 0 - Default"
"Auxiliary Work Mode 1"="Aux 1 - STREAD"
"Auxiliary Work Mode 2"="Aux 2 - Coaching"
"Auxiliary Work Mode 3"="Aux 3 - Training"
"Auxiliary Work Mode 4"="Aux 4 - Team Meeting"
"Auxiliary Work Mode 5"="Aux 5 - Breaks"
"Auxiliary Work Mode 6"="Aux 6 - Project"
"Auxiliary Work Mode 7"="Aux 7 - System"
"Auxiliary Work Mode 8"="Aux 8 - Callback"

I tried a few things and after reading some various MS support documentation, this is as far as I've gotten:

CLASS USER
CATEGORY "IP Agent AUX Code Settings"
POLICY "IP Agent AUX Code Settings"

KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
VALUENAME "Auxiliary Work Mode 0"
VALUE "Aux 0 - Default"

KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
VALUENAME "Auxiliary Work Mode 1"
VALUE "Aux 1 - STREAD"

KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
VALUENAME "Auxiliary Work Mode 2"
VALUE "Aux 2 - Coaching"

KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
VALUENAME "Auxiliary Work Mode 3"
VALUE "Aux 3 - Training"

KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
VALUENAME "Auxiliary Work Mode 4"
VALUE "Aux 4 - Team Meeting"

KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
VALUENAME "Auxiliary Work Mode 5"
VALUE "Aux 5 - Breaks"

KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
VALUENAME "Auxiliary Work Mode 6"
VALUE "Aux 6 - Project"

KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
VALUENAME "Auxiliary Work Mode 7"
VALUE "Aux 7 - System"

KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
VALUENAME "Auxiliary Work Mode 8"
VALUE "Aux 8 - Callback"
END POLICY
END CATEGORY;

When I try to add this template into a group policy, I get an error in the attached screenshot.

Any help would be appreciated.

screenshot.jpg
Comment
Watch Question

Commented:
Hi there

i helped someone recently with their ADm (see link) see if it helps you at all, if not then let me know and i will assist more

http://www.experts-exchange.com/Software/Server_Software/File_Servers/Active_Directory/Q_24113361.html?cid=238#a23559427

Krystian

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Commented:
What i was trying to show was that you can use a list box option for your needs, (judging by what you are trying to do that is), and the link will show how to set this up


Krystian
Commented:
I discovered my own solution. I used a tool called Reg2Adm (http://www.novell.com/coolsolutions/tools/13885.html) to import the settings I needed into the ADM, and then I modified the ADM to what I needed. It came out to the following:

CLASS USER
CATEGORY !!categoryname
  POLICY !!policyname
  KEYNAME "Software\Avaya\Avaya IP Agent\General\Personalized\enu\Global"
  EXPLAIN !!IPAgentAUXCodeSettings_Help
    PART "Auxiliary Work Mode 1" EDITTEXT
      DEFAULT "Aux 1 - STREAD"
    VALUENAME "Auxiliary Work Mode 1"
    END PART
    PART "Auxiliary Work Mode 2" EDITTEXT
      DEFAULT "Aux 2 - Coaching"
    VALUENAME "Auxiliary Work Mode 2"
    END PART
    PART "Auxiliary Work Mode 3" EDITTEXT
      DEFAULT "Aux 3 - Training"
    VALUENAME "Auxiliary Work Mode 3"
    END PART
    PART "Auxiliary Work Mode 4" EDITTEXT
      DEFAULT "Aux 4 - Team Meeting"
    VALUENAME "Auxiliary Work Mode 4"
    END PART
    PART "Auxiliary Work Mode 5" EDITTEXT
      DEFAULT "Aux 5 - Breaks"
    VALUENAME "Auxiliary Work Mode 5"
    END PART
    PART "Auxiliary Work Mode 6" EDITTEXT
      DEFAULT "Aux 6 - Project"
    VALUENAME "Auxiliary Work Mode 6"
    END PART
    PART "Auxiliary Work Mode 7" EDITTEXT
      DEFAULT "Aux 7 - System"
    VALUENAME "Auxiliary Work Mode 7"
    END PART
    PART "Auxiliary Work Mode 8" EDITTEXT
      DEFAULT "Aux 8 - Callback"
    VALUENAME "Auxiliary Work Mode 8"
    END PART
    PART "Auxiliary Work Mode 0" EDITTEXT
      DEFAULT "Aux 0 - Default"
    VALUENAME "Auxiliary Work Mode 0"
    END PART
  END POLICY
END CATEGORY

[strings]
IPAgentAUXCodeSettings_Help="When enabled, this will apply AUX code names to the IP Agent AUX Code dropdown box."
categoryname="IP Agent AUX Code Settings"
policyname="IP Agent AUX Code Settings"
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.