Simple ADM Development Problem

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi All,

I'm trying to develop a simple ADM as a proof-of-concept. I want it to
change the registry key that will put up a custom message at logon (like a
number to call if the user needs help).

My code is as follows:

CLASS MACHINE

CATEGORY !!LogOnLogOff
POLICY !!LogonMessage
KEYNAME "Software\Microsoft\Windows NT\CurrentVersion\Winlogon"
EXPLAIN !!LogonMessage_Explain
PART !!LogonDescription EDITTEXT REQUIRED
VALUENAME "LogonPrompt"
END PART
END POLICY
END CATEGORY

[Strings]
LogOnLogOff="Custom Logon Properties"
LogonMessage="Display Custom Text For Windows Logon."
LogonMessage_Explain="Sets text to appear above the windows login screen."
LogonDescription="Type the text you want to appear."



When I navigate to my 'Custom Logon Properties' directory under
Administrative Templates, no items are shown. I've isolated the error to be
related to the registry key I'm using, as other registry keys work fine (see
changes below):

KEYNAME "Software\Policies\Microsoft\Windows NT\Setup"

PART !!LogonDescription EDITTEXT REQUIRED
VALUENAME "SourcePath"

anyone have any ideas why I can't get this to work?

Thanks!
 
There's an option on the view menu when you right-click in the right-hand
pane of Administrative Templates called something like "Show Policies Only".
Sorry, I can't check the exact wording as it's changed in XP.

Oli
 
Thanks Oli - I found that setting under filtering, but I'm not sure why it
needs to be enabled. The only description of this setting I found is this:

To hide Windows NT 4.0 system policy settings, select the Only show policy
settings that can be fully managed check box. This option is recommended,
and it is selected by default.

Why would hiding NT policies enable the view? Why isn't this template
visible by default...not to mention that the policy does not seem to do what
I want it to do.

Thanks!

Oli Restorick said:
There's an option on the view menu when you right-click in the right-hand
pane of Administrative Templates called something like "Show Policies Only".
Sorry, I can't check the exact wording as it's changed in XP.

Oli


Jason said:
Hi All,

I'm trying to develop a simple ADM as a proof-of-concept. I want it to
change the registry key that will put up a custom message at logon (like a
number to call if the user needs help).

My code is as follows:

CLASS MACHINE

CATEGORY !!LogOnLogOff
POLICY !!LogonMessage
KEYNAME "Software\Microsoft\Windows NT\CurrentVersion\Winlogon"
EXPLAIN !!LogonMessage_Explain
PART !!LogonDescription EDITTEXT REQUIRED
VALUENAME "LogonPrompt"
END PART
END POLICY
END CATEGORY

[Strings]
LogOnLogOff="Custom Logon Properties"
LogonMessage="Display Custom Text For Windows Logon."
LogonMessage_Explain="Sets text to appear above the windows login screen."
LogonDescription="Type the text you want to appear."



When I navigate to my 'Custom Logon Properties' directory under
Administrative Templates, no items are shown. I've isolated the error to be
related to the registry key I'm using, as other registry keys work fine (see
changes below):

KEYNAME "Software\Policies\Microsoft\Windows NT\Setup"

PART !!LogonDescription EDITTEXT REQUIRED
VALUENAME "SourcePath"

anyone have any ideas why I can't get this to work?

Thanks!
 
There's a differentiation between a "true policy" and a old-style policy. A
true policy, when it falls out of the scope of management (either by being
deleted, disabled, or not applying any more), will cause the policy to be
undone. A traditional policy will "tattoo" itself onto the registry and
will still be there if the policy ever falls out of scope.

That's the differentation and by default, policies that "tattoo" are not
shown.

Oli


Jason said:
Thanks Oli - I found that setting under filtering, but I'm not sure why it
needs to be enabled. The only description of this setting I found is this:

To hide Windows NT 4.0 system policy settings, select the Only show policy
settings that can be fully managed check box. This option is recommended,
and it is selected by default.

Why would hiding NT policies enable the view? Why isn't this template
visible by default...not to mention that the policy does not seem to do what
I want it to do.

Thanks!

Oli Restorick said:
There's an option on the view menu when you right-click in the right-hand
pane of Administrative Templates called something like "Show Policies Only".
Sorry, I can't check the exact wording as it's changed in XP.

Oli
(like
a
number to call if the user needs help).

My code is as follows:

CLASS MACHINE

CATEGORY !!LogOnLogOff
POLICY !!LogonMessage
KEYNAME "Software\Microsoft\Windows NT\CurrentVersion\Winlogon"
EXPLAIN !!LogonMessage_Explain
PART !!LogonDescription EDITTEXT REQUIRED
VALUENAME "LogonPrompt"
END PART
END POLICY
END CATEGORY

[Strings]
LogOnLogOff="Custom Logon Properties"
LogonMessage="Display Custom Text For Windows Logon."
LogonMessage_Explain="Sets text to appear above the windows login screen."
LogonDescription="Type the text you want to appear."



When I navigate to my 'Custom Logon Properties' directory under
Administrative Templates, no items are shown. I've isolated the error
to
be
related to the registry key I'm using, as other registry keys work
fine
(see
changes below):

KEYNAME "Software\Policies\Microsoft\Windows NT\Setup"

PART !!LogonDescription EDITTEXT REQUIRED
VALUENAME "SourcePath"

anyone have any ideas why I can't get this to work?

Thanks!
 
Thanks Oli - that explains it - except for why it isn't working ;-) I'll
look into that one.

Thanks again!

Jason
Oli Restorick said:
There's a differentiation between a "true policy" and a old-style policy. A
true policy, when it falls out of the scope of management (either by being
deleted, disabled, or not applying any more), will cause the policy to be
undone. A traditional policy will "tattoo" itself onto the registry and
will still be there if the policy ever falls out of scope.

That's the differentation and by default, policies that "tattoo" are not
shown.

Oli


Jason said:
Thanks Oli - I found that setting under filtering, but I'm not sure why it
needs to be enabled. The only description of this setting I found is this:

To hide Windows NT 4.0 system policy settings, select the Only show policy
settings that can be fully managed check box. This option is recommended,
and it is selected by default.

Why would hiding NT policies enable the view? Why isn't this template
visible by default...not to mention that the policy does not seem to do what
I want it to do.

Thanks!

Oli Restorick said:
There's an option on the view menu when you right-click in the right-hand
pane of Administrative Templates called something like "Show Policies Only".
Sorry, I can't check the exact wording as it's changed in XP.

Oli


Hi All,

I'm trying to develop a simple ADM as a proof-of-concept. I want it to
change the registry key that will put up a custom message at logon
(like
a
number to call if the user needs help).

My code is as follows:

CLASS MACHINE

CATEGORY !!LogOnLogOff
POLICY !!LogonMessage
KEYNAME "Software\Microsoft\Windows NT\CurrentVersion\Winlogon"
EXPLAIN !!LogonMessage_Explain
PART !!LogonDescription EDITTEXT REQUIRED
VALUENAME "LogonPrompt"
END PART
END POLICY
END CATEGORY

[Strings]
LogOnLogOff="Custom Logon Properties"
LogonMessage="Display Custom Text For Windows Logon."
LogonMessage_Explain="Sets text to appear above the windows login screen."
LogonDescription="Type the text you want to appear."



When I navigate to my 'Custom Logon Properties' directory under
Administrative Templates, no items are shown. I've isolated the
error
 
Back
Top