Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. remove server from active directory

remove server from active directory

Scheduled Pinned Locked Moved The Lounge
csssysadminwindows-admincollaborationhelp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    V 0
    wrote on last edited by
    #1

    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.

    H R 2 Replies Last reply
    0
    • V V 0

      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.

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      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.

      R 1 Reply Last reply
      0
      • V V 0

        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.

        R Offline
        R Offline
        randprin
        wrote on last edited by
        #3

        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.

        L 1 Reply Last reply
        0
        • H Henry Minute

          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.

          R Offline
          R Offline
          randprin
          wrote on last edited by
          #4

          Henry Minute wrote:

          Oh yes it is!

          picky, picky...

          1 Reply Last reply
          0
          • R randprin

            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.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups