Solved

Creating a Group Policy ADM to set the DefaultDomainName registry key

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 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

21 Experts available now in Live!

Get 1:1 Help Now