Solved

Creating a Group Policy ADM to set the DefaultDomainName registry key

Posted on 2006-06-12
7
2,091 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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