Solved

Creating a Group Policy ADM to set the DefaultDomainName registry key

Posted on 2006-06-12
7
2,093 Views
Last Modified: 2008-01-09
I want to create a custom .adm file to set the domain I am getting unexpected keyword errors for the following

 LASS MACHINE
      CATEGORY "DOMAIN Settings"
            CATEGORY "DOMAIN Server Setting"
                  POLICY "Default Domain"
                  KEYNAME "SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon
                  PART "DefaultDomainName" EDITTEXT
                  DEFAULT "DOMAINNAMEHERE"
                  END POLICY
      END CATEGORY
END CATEGORY

can anyone see what I am doing wrong .. thanks Michael
0
Comment
Question by:OSLEE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
7 Comments
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16891819
you havent specified where the key is....
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16891825
use the NUTS package
http://yizhar.mvps.org/
0
 
LVL 71

Expert Comment

by:Chris Dent
ID: 16892336

You're missing the VALUENAME part of the policy... without that it doesn't know what to alter.

You already have the KeyName:

KEYNAME "SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon

Is WinLogon the value you're trying to alter? Doesn't exist on my PC so I couldn't check.

Chris

0
 

Author Comment

by:OSLEE
ID: 16899476
the key name is "DefaultDomainName" it is a reg_sz value
0
 
LVL 71

Accepted Solution

by:
Chris Dent earned 250 total points
ID: 16900581

Okay, then change it to:

CLASS MACHINE
     CATEGORY "DOMAIN Settings"
          CATEGORY "DOMAIN Server Setting"
               POLICY "Default Domain"
               KEYNAME "SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon"
               PART "Default Domain Name" EDITTEXT
                    VALUENAME "DefaultDomainName"
                    DEFAULT "DOMAINNAMEHERE"
               END POLICY
     END CATEGORY
END CATEGORY

You must always specify the ValueName you want to alter. The name you give to Part is just a name, nothing but aesthetics.

Chris
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question