如何以编程方式访问BitLocker恢复选项卡备份恢复密码 [英] How to access bitlocker recovery tab programmatically to backup recovery passwords

查看:219
本文介绍了如何以编程方式访问BitLocker恢复选项卡备份恢复密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们禁用计算机时,他们还没有被使用了一定量的时间之后并在这些计算机中一定量的时间之后删除了活动目录。我一直负责撰写code要经过Active Directory和复制所有的BitLocker恢复密码被删除之前禁用机(手工做,如果做了,在现在没事了)。我开始仿制,通过Active Directory只是循环和有这样的:

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

我看到所有的残疾人电脑作为主要的搜索孩子,但希望通过对这些孩子,我没有看到任何东西指的BitLocker特性。我已经改变了我的谷歌搜索,BitLocker的具体,但我没有找到沿着我所需要的线什么。有谁知道一个好办法做到这一点?

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?

推荐答案

的属性本文中列出 - 的 http://technet.microsoft.com/en-us/library/dd875529(WS.10)下的存储BitLocker恢复信息的AD DS的.aspx 部分。你可以用 de.Properties [你的财产,在这里]访问这些属性。值

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.

这篇关于如何以编程方式访问BitLocker恢复选项卡备份恢复密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆