MDT DB 中的數據表和檢視

在 MDT 中,許多屬性設定都可以儲存 (通常會設定在資料庫中) CustomSettings.ini 檔案中。 在資料庫中設定屬性有助於建立需要較少修改的一般 CustomSettings.ini 檔案,並允許在 (的多個影像中使用一個 CustomSettings.ini 檔案,因為檔案是較通用的) 。

在 Deployment Workbench 的 [資料庫] 節點中自定義資料庫。 使用 Deployment Workbench,即可設定部署設定並儲存在數據表中。

不過,有關數據表中信息的查詢是使用檢視來完成。 檢視可藉由聯結多個數據表的結果來協助簡化查詢。 ZTIGather.wsf 會查詢檢視,以傳回 ParametersParameterCondition 屬性指定的結果集。

MDT DB 中的數據表

下表列出 Deployment Workbench 建立和管理的資料庫數據表。

Table 描述
ComputerIdentity 用來使用 AssetTag、UUID、SerialNumberMACAddress 屬性的任何組合來識別特定電腦。 數據表包含 [ 描述 ] 數據行,可提供使用者易記的方法來描述計算機 (通常是計算機名稱) 。
描述 包含可透過資料庫設定之所有屬性的描述。
LocationIdentity 用來使用 Location 屬性來識別地理位置。 這個屬性的值會儲存在數據表的對應數據行中。
LocationIdentity_DefaultGateway 將預設閘道值與 LocationIdentity 資料表中識別的位置建立關聯。 此數據表與 LocationIdentity 數據表之間有一對多關聯性。
MakeModelIdentity 用來使用Make和Model屬性來識別電腦的特定 製造模型 。 這些屬性的值會儲存在數據表中的對應數據行中。
PackageMapping 用來將 [新增或移除程式] 控制台 項目中顯示的名稱與要部署的 Configuration Manager 套件和程式建立關聯,以取代 [新增或移除程式] 中的應用程式。 如需此表格的詳細資訊,請參閱 MDT 檔 Microsoft Deployment Toolkit 範例指南中的一節。
RoleIdentity 用來使用 Role 屬性來識別電腦或電腦使用者的用途。 這個屬性的值會儲存在數據表的對應數據行中。
設定 根據 Deployment Workbench 中 [資料庫] 節點中的 [計算機]、[角色]、[位置] 和 [建立和模型] 節點中的設定,識別套用至個別計算機或計算機群組的設定。
Settings_Administrators 根據 Deployment Workbench 中 [資料庫] 節點中的 [計算機]、[角色]、[位置] 和 [建立和模型] 節點中的設定,識別要新增至目標計算機上本機 Administrator 群組的用戶帳戶。
Settings_Applications 根據 Deployment Workbench 中 [資料庫] 節點中的 [計算機]、[角色]、[位置] 和 [建立和模型] 節點中的設定,識別要部署至目標計算機的應用程式。
Settings_Packages 根據 Deployment Workbench 中 [資料庫] 節點中的 [計算機]、[角色]、[位置] 和 [建立和模型] 節點中的設定,識別要部署至目標計算機的套件。
Settings_Roles 根據 Deployment Workbench 中 [資料庫] 節點中的 [計算機]、[位置] 和 [建立和模型] 節點中的設定,識別要與目標計算機相關聯的角色。

MDT DB 中的檢視

下表列出並描述查詢 MDT DB 中的組態資訊時所使用的資料庫檢視。

View 描述
ComputerAdministrators 用來尋找要成為目標計算機上本機 Administrators 群組成員的所有帳戶。 檢視是 ComputerIdentity 和 Settings_Administrators 數據表的聯結。
ComputerApplications 用來尋找要部署至目標計算機的所有應用程式。 檢視是 ComputerIdentity 和 Settings_Applications 數據表的聯結。
ComputerPackages 用來尋找要部署至目標計算機的所有套件。 檢視是 ComputerIdentity 和 Settings_Packages 數據表的聯結。
ComputerRoles 用來尋找要與目標計算機相關聯的所有角色。 檢視是 ComputerIdentity 和 Settings_Roles 數據表的聯結。
ComputerSettings 用來尋找要為目標計算機設定的所有屬性設定。 此檢視是 ComputerIdentity 和 Settings 數據表的聯結。
LocationAdministrators 用來尋找要成為位置內目標計算機上本機 Administrators 群組成員的所有帳戶。 檢視是 LocationIdentity、LocationIdentity_DefaultGateway 和 Settings_Administrators 數據表的聯結。
LocationApplications 用來尋找要部署到某個位置內目標計算機的所有應用程式。 檢視是 LocationIdentity、LocationIdentity_DefaultGateway 和 Settings_Applications 數據表的聯結。
LocationPackages 用來尋找要部署到某個位置內目標計算機的所有套件。 檢視是 LocationIdentity、LocationIdentity_DefaultGateway 和 Settings_Packages 數據表的聯結。
LocationRoles 用來尋找要與某個位置內的目標計算機相關聯的所有角色。 檢視是 LocationIdentity、LocationIdentity_DefaultGateway 和 Settings_Roles 數據表的聯結。
位置 用來尋找位置內預設閘道的IP位址,或針對包含預設閘道之指定IP位址的所有位置尋找IP位址。 檢視是 LocationIdentity 和 LocationIdentity_DefaultGateway 數據表的聯結。
LocationSettings 用來尋找要為位置內的目標計算機設定的所有屬性設定。 檢視是 LocationIdentity、LocationIdentity_DefaultGateway 和 Settings 數據表的聯結。
MakeModelAdministrators 用來尋找要成為目標計算機上具有指定製造和模型之本機 Administrators 群組成員的所有帳戶。 檢視是MakeModelIdentity和 Settings_Administrators數據表的聯結。
MakeModelApplications 用來尋找要部署至具有指定製造和模型之目標計算機的所有應用程式。 檢視是 MakeModelIdentity 和 Settings_Applications 數據表的聯結。
MakeModelPackages 用來尋找要部署至具有指定製造和模型之目標計算機的所有套件。 檢視是 MakeModelIdentity 和 Settings_Applications 數據表的聯結。
MakeModelRoles 用來尋找與具有指定製造和模型的目標計算機相關聯的所有角色。 檢視是MakeModelIdentity和 Settings_Roles數據表的聯結。
MakeModelSettings 用來尋找要為具有指定製造和模型的目標計算機設定的所有屬性設定。 此檢視是 MakeModelIdentity 和 Settings 數據表的聯結。
RoleAdministrators 用來尋找要成為目標計算機上具有指定角色之本機 Administrators 群組成員的所有帳戶。 檢視是 RoleIdentity 和 Settings_Administrators 數據表的聯結。
RoleApplications 用來尋找要部署至具有指定角色之目標計算機的所有應用程式。 檢視是 RoleIdentity 和 Settings_Applications 數據表的聯結。
RolePackages 用來尋找要部署至具有指定角色之目標計算機的所有套件。 檢視是 RoleIdentity 和 Settings_Packages 數據表的聯結。
RoleSettings 用來尋找要為具有指定角色的目標計算機設定的所有屬性設定。 此檢視是 RoleIdentity 和 Settings 數據表的聯結。