remove server from active directory
-
It's not a programming question. I just want to know if it is possible, through code to remove a server from the Active Directory and more over, more or less 'by accident'. We have the problem here were a server suddenly is removed from the Active Directory, most of us wouldn't even know how to do it manually, nor via code, nor can we think of a reason to do so. We do have some old applications running, it might be one of those, but on the other hand, the servers in question (Yes, more then one) are fairly new. So a server is removed from Active Directory, apparently at random and without any user intervention (that our team knows of).
V.
-
It's not a programming question. I just want to know if it is possible, through code to remove a server from the Active Directory and more over, more or less 'by accident'. We have the problem here were a server suddenly is removed from the Active Directory, most of us wouldn't even know how to do it manually, nor via code, nor can we think of a reason to do so. We do have some old applications running, it might be one of those, but on the other hand, the servers in question (Yes, more then one) are fairly new. So a server is removed from Active Directory, apparently at random and without any user intervention (that our team knows of).
V.
V. wrote:
It's not a programming question.
V. wrote:
if it is possible, through code
Oh yes it is!
Henry Minute Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is. Cogito ergo thumb - Sucking my thumb helps me to think.
-
It's not a programming question. I just want to know if it is possible, through code to remove a server from the Active Directory and more over, more or less 'by accident'. We have the problem here were a server suddenly is removed from the Active Directory, most of us wouldn't even know how to do it manually, nor via code, nor can we think of a reason to do so. We do have some old applications running, it might be one of those, but on the other hand, the servers in question (Yes, more then one) are fairly new. So a server is removed from Active Directory, apparently at random and without any user intervention (that our team knows of).
V.
yes, you can, quite easily actually. Edit: sorry, i'll elaborate, as an example it's enough that your LDAP query is based on a common field like common name and no additional tags to ensure it selects only users (or users and groups), and your root entry is the tree root for the active directory, and viola, you can get the entry for a computer and remove it from the tree as if it was any other entry.
-
V. wrote:
It's not a programming question.
V. wrote:
if it is possible, through code
Oh yes it is!
Henry Minute Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is. Cogito ergo thumb - Sucking my thumb helps me to think.
-
yes, you can, quite easily actually. Edit: sorry, i'll elaborate, as an example it's enough that your LDAP query is based on a common field like common name and no additional tags to ensure it selects only users (or users and groups), and your root entry is the tree root for the active directory, and viola, you can get the entry for a computer and remove it from the tree as if it was any other entry.
randprin wrote:
the active directory, and viola
So the server plays music as well?
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman