Re: exempt a machine from a group policy

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The computer name in an ACL normally only gets used when there is an attempt
to use an object by one of the "SYSTEM" accounts on a computer. So for
example if you schedule a backup on a computer to a file server, the ACL for
the destination folder on the file server would need to explicitly or
implicity authorize Modify access by the machine account. In your case,
the script is NOT executed *by* a machine. It is executed by a user who
happens to be *on* that machine. But the authentication will be seen as
coming from the user, not the machine. Microsoft's ACL mechanism lacks
the level of sophistication of specifying a user account conditioned by a
location. The user is authorized or not authorized, and the location from
which the request comes isn't part of the ACL.

You could isolate the machine into an organizational unit and not apply the
login script GPO to that OU. You could also simply program around the
machine name in the script itself, as already suggested.

--
Will

"Agostino" <sclauzero@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23QSVs%23FDJHA.1184@xxxxxxxxxxxxxxxxxxxxxxx
Thanks.
But where is the error with my approach?
I don't understand why the "machine deny policy" is ignored.
What is the moment the policies are evaluated? While a user is logging in
the machine knows its own name!
Feel quite confused about all this gpo stuff works.
thanks!
Agostino


"Florian Frommherz [MVP]" <florian@xxxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto
nel messaggio news:OQkaowFDJHA.4696@xxxxxxxxxxxxxxxxxxxxxxx
Howdie!

Agostino wrote:
I've a domain with several gp linked to objects.
I want a new login script, so i created a new gp.
I want this login script to apply to all users, all machines BUT one.
I added the machine account to the "delegation" for this policy, then
Denied the apply of it.
But it still applies on my machine.
What am I missing?

Since it's a (user) logon script, the user would be the one you need to
deny the read permissions. Since you can't enumerate all users logging on
to that machine, I'd check in the logon script for the machine name.

if %computername% == "comp1" goto end
command
command
command
:end

cheers,

Florian
--
Microsoft MVP - Group Policy
eMail: prename [at] frickelsoft [dot] net.
blog: http://www.frickelsoft.net/blog.
Maillist (german): http://frickelsoft.net/cms/index.php?page=mailingliste


.



Relevant Pages

  • Re: Populate email attribute in AD
    ... I have other OUs where I would like to use this script as well so ... it would be preferable to pass the OU LDAP path as a command line argument. ... >> I do not have to use the CSV file. ... >> If the script encounters a blank username field it will skip that account, ...
    (microsoft.public.windows.server.scripting)
  • Re: problem with login
    ... login session" after I create their account. ... If your script is using the mkuser command, ...
    (comp.unix.aix)
  • Re: local exploit for "/ect/shadow"
    ... post the results of running your command. ... can't post the results without sanitizing. ... script will say error every time. ... If attacker delete regular account root and s/he append r00t ...
    (comp.os.linux.security)
  • Re: su Command from a script with Password?
    ... > I need to use the su command from a script with a known password. ... > origen account is not root, but the password to the destination ... > account inside a script unless I am no the root account. ...
    (comp.unix.programmer)
  • Re: Win2k - Account Operator not working properly
    ... You very likely have other ACL issues other than what was mentioned and I can point them out here for you for free or you can pay someone $200-500 an hour to come check it out. ... In order for that to result in inheritence protection it means the schema had to be modified. ... set the account in the GUI to inherit from its parents. ... Used the delegation wizard, on the top level OU, to assign the desired permissions. ...
    (microsoft.public.windows.server.active_directory)