Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7785857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:19:22+00:00 2026-06-01T20:19:22+00:00

We disable computers when they haven’t been used after a certain amount of time

  • 0

We disable computers when they haven’t been used after a certain amount of time and those computers are deleted out of Active Directory after a certain amount of time. I have been tasked with writing code to go through active directory and copying all of the bitlocker recovery passwords for the disabled machines before they are deleted (done manually if done at all right now). I started generic, just looping through Active Directory and have this:

DirectoryEntry adRoot = new DirectoryEntry("XXXX://" + domain, null, null, AuthenticationTypes.Secure);
DirectorySearcher searcher = new DirectorySearcher(adRoot);
searcher.SearchScope = SearchScope.Subtree;
searcher.ReferralChasing = ReferralChasingOption.All;
SearchResultCollection result = searcher.FindAll();
foreach (SearchResult res in result)
{
    DirectoryEntry directoryEntry = res.GetDirectoryEntry();
    foreach (DirectoryEntry de in directoryEntry.Children)
    {
    }
}

I see all of the disabled computers as children on the main search but looking through the properties on those children I am not seeing anything referring to bitlocker. I have changed my google search to bitlocker specific but am not finding anything along the lines of what I am needing. Does anyone know of a good way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:19:23+00:00Added an answer on June 1, 2026 at 8:19 pm

    The attributes are listed in this article – http://technet.microsoft.com/en-us/library/dd875529(WS.10).aspx under the ‘Storing BitLocker recovery information in AD DS’ section. You can access these properties with de.Properties["your-property-here"].Value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a form that will disable at a certain time and
I want to disable all Foreign key constraints and re-enable them after, is there
How to disable a button after entering a particular letter in a textfield?
How to disable creating an '.idea' folder in Rubymine? It creates that folder after
I have an application that can be used without authentication on computers in public
it's been a long while since I've used VS 2010 and C++, and as
I am looking to disable the Command + Click combination on a toolbar button
We need to conditionally disable GZIP compression if user's browser is IE6 (it hangs
I am trying to disable log rotation, for file handler using, FileHandler fh =
I need to disable access to a SharePoint application between 6 PM and 7

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.