How to create an ADM file with prepopulated values

Experts,

I am trying to create an ADM file with prepolated values, for example when I apply the file to the GPO, I'll like the Enable button and the value already filled in the box.

There are different documents that explain how to create an ADM file, but none of the
With preconfigured values.
IslandrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
The reason you don't see it is because it can't be done. These are only templates
0
IslandrAuthor Commented:
David,

Can I prepopulate a template? for example having the enable button and then in the field an IP Address? or Is there any other way to accomplish this task?

Thanks,
0
Lionel MMSmall Business IT ConsultantCommented:
Let's say you have a GPO called test1 and in that GPO you make changes abc and xyz; are you asking whether that GPO can then be used as "new" template for other GPOs or to backup and restore on another server?
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

CoralonCommented:
Depending on the type of ADM field (edit box, combo box, etc.) for many of them you can set the default value which will be prepopulated.  

Here is an example:
POLICY !!TcpMaxDataRetransmissions
	EXPLAIN !!TcpMaxDataRetransmissions_Help
	KEYNAME "SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"
	PART !!TcpMaxDataRetransmissions NUMERIC
		VALUENAME "TcpMaxDataRetransmissions"
		DEFAULT 10
		END PART
END POLICY

Open in new window


This one creates a spinner, with the default value set at 10.  You can use DEFAULT with most of various parts.  

Coralon
0
IslandrAuthor Commented:
Coralon/lionelmm

Here is some examples of what I am trying to accomplished, I am attaching three screen shots of the 3 settings that I need to be prepopulated.  Please let me know if this is possible.

Thanks,
scAd1.png
scAd2.png
scAd3.png
0
IslandrAuthor Commented:
lionelmm,

I have big AD and I wanted to apply the policy to different OU's on AD based on IP's and Groups, I wanted to automated as much as possible, by specifying a value on the .adm and adding the template.
0
Lionel MMSmall Business IT ConsultantCommented:
OK and just to be sure these "templates" will only be applied once to a user or a system? Otherwise you will have lots of duplicate settings. Create a base GPO--back it up and then import it into the other templates--will add detail to this later--on my way out the door.
0
IslandrAuthor Commented:
lionelmm,

I do not want to do it manually, what I am looking for is to apply the custom templates with the values already set, such as IP, security groups, etc.
0
CoralonCommented:
Here's an example policy.. you can tweak it as much as you want..

CLASS MACHINE
	CATEGORY "Custom Machine Group"
		POLICY "Set the Machine Group"
		EXPLAIN "This is the help for the Machine Group policy"
		KEYNAME "Software\CustomCompany\CustomMachineKey"
			PART "Machine Group Name" EDITTEXT
				VALUENAME MYGROUPNAME
				DEFAULT "Enterprise Servers"
			END PART
		END POLICY
	END CATEGORY



CLASS USER
	CATEGORY "Custom Template Settings"
		POLICY !!Description
		EXPLAIN !!ExplainHelp
		KEYNAME "Software\CustomCompany\CustomKey"
			PART "PartName" EDITTEXT
				VALUENAME MyIPAddress
				DEFAULT "10.200.1.100"
			END PART
		END POLICY

		POLICY "Another Policy Name"
		EXPLAIN "More help!"
		KEYNAME "Software\CustomCompany\CustomKey\CustomSubKey"
			PART "End Users Group" EDITTEXT
				VALUENAME "EndUserGroup"
				DEFAULT "EndUsers_Group"
			END PART
		END POLICY
	END CATEGORY

[strings]
Description=This is a string that gets substituted in at the !!name location
ExplainHelp=This string contains the help information that displays on the left

Open in new window


Load it up and you'll see how the various parts lay out.  
This link has everything you need to start creating more ADM files..
https://technet.microsoft.com/en-us/library/cc759364(v=ws.10).aspx

Coralon
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IslandrAuthor Commented:
Coralon,

Do you know if is possible to set everything at the Class Machine level instead of the Class User?
0
CoralonCommented:
Absolutely..  that is literally the only change you have to make.

Coralon
0
IslandrAuthor Commented:
Coralon,

Sorry for the delay, I am going to test it and let you know.
0
Seth SimmonsSr. Systems AdministratorCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.