Re: Is it possible to make changes to a group policy through script
- From: "Roger Abell [MVP]" <mvpNoSpam@xxxxxxx>
- Date: Wed, 18 Oct 2006 22:58:39 -0700
For that setting I would look to see if NTrights.exe from the resource kit
could handle your need. Otherwise, yes, one can have a single settings in
a template and apply it. I just define a temp GPO, import the template, and
use GPMC to see report of settings when I want to verify what is in a
template
(easier than all the clicking through the template to verify).
However, in your case, I would not advise using a template etc. as what one
states there is the fully and complete list of groups/accounts that have
that right.
You cannot make assumptions about what differences may exist in different
machines. Hence, see if NTright.exe can do it. Also, user rights are one
of the
very few policy settings that are accessible from custom code.
"Brian Nielsen" <BrianNielsen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F2F8F0C2-90C4-4083-A8DB-276AC6EB5C18@xxxxxxxxxxxxxxxx
Hi Roger
Thanx for the answer.
The primary reason for using the setting is that some of the users on the
network must have special rights (the rights are given through group
membership).
When these users login, they select a 'profile' to work as and then
re-logon
to have the proper rights.
In this case group membership must be updated and take effect at that next
logon. And this only happens on Windows 2000 WS or if this GPO setting is
enabled on the client in Windows XP.
If there are easier an easier way to make this happen, I would like to
know...
I'm not completely sure about templates.
Can I make a template that only contains this single change (and be sure
that there not other machine specific stuff in the template).
And then apply it to the client by a script?
(it is to be used as part of an installation MSI file)
/Brian
"Roger Abell [MVP]" wrote:
"Brian Nielsen" <BrianNielsen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:35C2EC26-DEAC-49C7-8E26-E70CD2CAE2F8@xxxxxxxxxxxxxxxx
Hi
I need to set the group policy setting "Always wait for the network at
computer startup and logon" on all Windows XP machines in the network,
to
make XP apply group policies at logon time and alter group memberships
on
each logon.
The policy you mention will not have the effect that you mention.
It will cause what you say only when policies are applied, which in
default
settings will be when a change is detected in the applied policies.
I can't do it on the domain controller because XP be default apply
group
policies asynchronously and therefore the setting will not be active
when
a
user logon.
This does not follow.
Apply the setting to the client machines using a GPO if those machines
are in a domain. Once the machines have processed the new settings
those settings will thereafter be used.
The question 2-sided:Not really. One could define a template and have that applied with
1. Is there a way to change this setting using a script on the local
machine?
secedit.
Otherwise there is no scripting API available to do this.
2. If it is not possible to do it by script, what is the easiest way to
apply this change in an environment consisting of Win2k3 DC's and
Windows
XP
workstations?
Use a GPO that applies to that set of workstations
.
- Follow-Ups:
- Re: Is it possible to make changes to a group policy through script
- From: Roger Abell [MVP]
- Re: Is it possible to make changes to a group policy through script
- References:
- Re: Is it possible to make changes to a group policy through script?
- From: Roger Abell [MVP]
- Re: Is it possible to make changes to a group policy through script
- From: Brian Nielsen
- Re: Is it possible to make changes to a group policy through script?
- Prev by Date: local computer policy is empty?
- Next by Date: Re: New to Group Policy
- Previous by thread: Re: Is it possible to make changes to a group policy through script
- Next by thread: Re: Is it possible to make changes to a group policy through script
- Index(es):
Relevant Pages
|
Loading