Re: Active Directory Machine Account Permissions

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 03/10/05


Date: Wed, 9 Mar 2005 23:05:24 -0600

Did you find a solution for this? I didn't see a reply.

To modify the security descriptor in .NET 1.1, you need to do COM Interop
with the IADsSecurityDescriptor. There are samples in the S.DS SDK docs in
MSDN.

The ActiveDirectorySecurity stuff is indeed .NET 2.0. It works if you want
to use the beta or CTP though. :)

Joe K.

"Jay Armstrong" <JayArmstrong@discussions.microsoft.com> wrote in message
news:37422076-E5D3-451A-B85F-8F73FBFD26C9@microsoft.com...
>I am creating computer accounts from a web interface and need to set the
> group that has the rights to join the computer to the domain (by default
> it
> is Domain Admins).
>
> I can create the accounts, and join them as a domain admin. The problem
> arises when the local administrators who have been delagated control to
> thier
> OU try to join the computer to the domain. They are recieveing an Account
> Exists error.
>
> This all works on my test domain with an account I have set up there, but
> fails on the live domain.
>
> I want to explicity assign Full Control of the computer account object to
> the local admins group for the OU to see if this will fix the problem.
>
> I have tried to use the NewComputer.ObjectSecurity.AddAccessRule method
> but
> can't find any documentation on it. (is it part of asp 2.0?)
>
> Any help is appreciated,
>
> Jay
>
> Here is my creation code:
>
> // Create the new Object
> DirectoryEntry NewComputer = DirLocation.Children.Add("cn=" + MachineName,
> SchemaName);
>
> // Create Computer Account
> NewComputer.Properties["sAMAccountName"].Add(MachineName + "$");
> NewComputer.Properties["description"].Add(MachDesc);
> NewComputer.Properties["userAccountControl"].Add(AccountControl);
>
> // Save Computer Account
> NewComputer.CommitChanges();
>
> // Create routine to set group able to add the computer to the domain
> // as the Designated OU Global Group
> <!-- here is where I am having the problem -->
>
> NewComputer.Close();
>



Relevant Pages

  • Re: Active Directory Machine Account Permissions
    ... >>I am creating computer accounts from a web interface and need to set the ... >> is Domain Admins). ... >> arises when the local administrators who have been delagated control to ... They are recieveing an Account ...
    (microsoft.public.dotnet.security)
  • Re: Active Directory Machine Account Permissions
    ... >>I am creating computer accounts from a web interface and need to set the ... >> is Domain Admins). ... >> arises when the local administrators who have been delagated control to ... They are recieveing an Account ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Active Directory Machine Account Permissions
    ... >I am creating computer accounts from a web interface and need to set the ... > is Domain Admins). ... > arises when the local administrators who have been delagated control to ... They are recieveing an Account ...
    (microsoft.public.dotnet.security)
  • RE: Scavanging retired machine accounts
    ... Here's a script I wrote a while back that does exactly what you want. ... 'pull back a list of every user's account name and distinguished name ... we're probably only interested in the disabled computer accounts ... 'There is no point disabling PCs based on how many weeks it's been since the ...
    (microsoft.public.windows.server.scripting)
  • Re: Problems with Disabled Computer Accounts
    ... I had a similar situation and after rebooting I was unable to login.. ... Recently I discovered that after Disabling one of my computer accounts ... if I disable a Computer account I should not be ... Am I just under the wrong impression on how Disabling ...
    (microsoft.public.windows.server.active_directory)

Quantcast