2012-04-09 38 views
0

我們禁用計算機,當它們在一段時間之後尚未使用並且這些計算機在一段時間後從Active Directory中刪除。我一直負責編寫代碼,以便在被刪除之前通過活動目錄並複製禁用機器的所有bitlocker恢復密碼(如果完成,請手動完成)。我開始仿製,只是通過Active Directory循環和有這樣的:如何以編程方式訪問BitLocker恢復選項卡以備份恢復密碼

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) 
    { 
    } 
} 

我看到所有的殘疾人電腦作爲主要的搜索兒童入住,但希望通過對這些孩子,我沒有看到任何東西指的BitLocker特性。我已經改變了我的谷歌搜索bitlocker具體,但沒有找到任何東西沿線我所需要的。有誰知道這樣做的好方法嗎?

回答

0

我不確定如何通過API訪問它,但使用ADSI編輯,將BitLock技術信息被顯示爲以下幾點:(很抱歉,如果我得到的語法錯誤)

CN=Computers,CN=COMPUTER-NAME,CN=TimestampWithTimezone{Guid} 
+0

謝謝您的信息。我相信這是他們一直用來查看信息的。 – 2012-04-10 13:22:23