|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Domain isolation question.I'm using c# to created a OU folder and named it "Isolate" in windows setting.
DirectoryEntry newEntry = de.Children.Add("ou=Isolate", "organizationalUnit"); newEntry.CommitChanges(); My question is how do I move computer accounts from domain to this folder? Thanks If you want to do this programmatically in .NET the same way as your OU
creation, you would use the MoveTo method on the DirectoryEntry class. Joe K. -- Show quoteHide quoteJoe Kaplan-MS MVP Directory Services Programming Co-author of "The .NET Developer's Guide to Directory Services Programming" http://www.directoryprogramming.net -- "ttan" <t***@discussions.microsoft.com> wrote in message news:2A3F671E-1CD1-4A7F-95BD-E16B333F5FC5@microsoft.com... > I'm using c# to created a OU folder and named it "Isolate" in windows > setting. > > DirectoryEntry newEntry = de.Children.Add("ou=Isolate", > "organizationalUnit"); > newEntry.CommitChanges(); > > My question is how do I move computer accounts from domain to this folder? > > Thanks Thank you for your tip, I get it to work with MoveTo()
Show quoteHide quote "Joe Kaplan (MVP - ADSI)" wrote: > If you want to do this programmatically in .NET the same way as your OU > creation, you would use the MoveTo method on the DirectoryEntry class. > > Joe K. > > -- > Joe Kaplan-MS MVP Directory Services Programming > Co-author of "The .NET Developer's Guide to Directory Services Programming" > http://www.directoryprogramming.net > -- > "ttan" <t***@discussions.microsoft.com> wrote in message > news:2A3F671E-1CD1-4A7F-95BD-E16B333F5FC5@microsoft.com... > > I'm using c# to created a OU folder and named it "Isolate" in windows > > setting. > > > > DirectoryEntry newEntry = de.Children.Add("ou=Isolate", > > "organizationalUnit"); > > newEntry.CommitChanges(); > > > > My question is how do I move computer accounts from domain to this folder? > > > > Thanks > > >
Advice requested : Storing SID String in SQL table
How to SELECT records based upon ASP.NET Roles CAS Policy issue Preferred method of hashing salted password Strong Name Sandboxed AppDomain and GAC Problem with plugins Verify syntax of an URl LDAP Authentication Security Library Classes GetAccess Control for Directory Is e-mail from Microsoft? |
|||||||||||||||||||||||