Solved

Creating a Group Policy ADM to set the DefaultDomainName registry key

Posted on 2006-06-12
7
2,076 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
  • 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 70

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 70

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now