Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products

如何在 Windows PE 中使用 Dell Command PowerShell Provider 安装 Dell SMBIOS

Summary: 本文讨论在 Windows PE 中使用 Dell Command | PowerShell Provider (DCPP) 安装 Dell SMBIOS。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

受影响的产品:

  • Dell Command | PowerShell Provider
  • Dell Command | Configure

提醒:带有 CCTK 二进制文件的正确 Windows PE 位于 ISO\sources\boot.wim 的临时目录下。

对于 Dell Command | Configure (DCC) 4.4 及更高版本或 DCPP 2.4 及更高版本

对于 Dell Command | Configure 4.3.1 及更早版本或 Dell Command | PowerShell Provider 2.3.1 及更早版本:

  1. 单击开始菜单并搜索 PowerShell
  2. 右键单击 PowerShell,然后选择以管理员身份运行
  3. 从 PowerShell 提示符下,键入 Find-Module DellBIOSProvider 然后按 Enter
  4. Y,然后按 Enter 键。
  5. 键入 Install-Module DellBIOSProvider 然后按 Enter
  6. Y 然后按 Enter
  7. 键入 Set-ExecutionPolicy Unrestricted 然后按 Enter
  8. A,然后按 Enter 键。
  9. 键入 Import-Module DellBIOSProvider -Verbose 然后按 Enter
  10. 下载并安装最新的 Windows 评估和部署工具包此超链接会将您带往 Dell Technologies 之外的网站。 (ADK)。
  11. 安装要在 Windows PE 中使用的 DCC(推荐),请参阅 Dell Command | Configure。
  12. 单击开始菜单并搜索 Dell Command Configure Prompt
  13. 右键单击 Dell Command Configure Prompt,然后选择以管理员身份运行
  14. 创建临时目录以包含 CCTK Windows PE:
    • 键入 MD c:\dcshare
    • 键入 MD c:\dcshare\temp
    • 键入 MD c:\dcshare\temp\mount
  15. 在 Dell Command Configure Prompt 中转至 DCC 安装目录。
    • 对于 64 位: CD C:\Program Files (x86)\Dell\Command Configure\X86_64
    • 对于 32 位: CD C:\Program Files (x86)\Dell\Command Configure\X86
  16. 让 DCC 使用以下命令和 DCC 二进制文件创建 Windows 10 PE 文件。从命令提示符处,键入 cctk_x86_64_winpe_10.bat c:\dcshare\pe344 c:\progra~2\dell\comman~1\ 然后按 Enter
    提醒:
    • .Bat 文件的第一个参数表示要创建的自定义 Windows PE 10.0 映像的本地目录的路径
    • 第二个参数表示解压的 Command Configure 工具包的路径。
  17. 使用以下命令在 Deployment and Imaging Tools Command Prompt 中装载 boot.wim DISM
    提醒:
    Windows PE 中的 PowerShell 需要自动化部署工具包中的其他功能,必须在安装 WinPE-PowerShell 之前安装该工具包:
    • WinPE-WMI
    • WinPE-NetFX
    • WinPE-Scripting
    DISM /Mount-WIM /wimfile:c:\dcshare\pe344\ISO\sources\boot.wim /index:1 /MountDir:c:\dcshare\temp\mount
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-WMI.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-WMI_en-us.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-NetFX.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-NetFX_en-us.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-Scripting.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-Scripting_en-us.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-PowerShell.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-PowerShell_en-us.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-StorageWMI.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-StorageWMI_en-us.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-DismCmdlets.cab"
    
    Dism /Add-Package /Image:"C:\Dcshare\temp\mount" /PackagePath:"C:\Program Files\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-DismCmdlets_en-us.cab"
  18. 复制 DCPP 安装目录中的 DellBIOSProvider 文件(例如将 C:\Program Files\WindowsPowerShell\Modules\DellBIOSProvider\2.4.0 复制到 mount\Program Files\WindowsPowerShell\Modules 目录)。
    DELLBIOSProvider 目录
  19. 将以下(以前安装的)Visual C++ DLL 文件从 C:\Windows\System32 复制到 mount\Program Files\WindowsPowerShell\Modules
    • 对于 DCPP 2.4 和更高版本
      • msvcp140.dll
      • vcruntime140.dll
      • vcruntime140_1.dll
        DSMBLivrary.dll
    • 对于 DCPP 2.3.1 和更早版本
      • msvcp100.dll
      • msvcr100.dll
      • msvcp140.dll
      • vccorlib140.dll
      • vcruntime140.dll
        DellBIOSProvider
  20. 卸载修改后的 Windows 10 PE CCTK WIM 文件。键入 DISM /unmount-wim /mountdir:c:\dcshare\temp\mount /commit 然后按 Enter
  21. 将修改后的 CCTK - Powershell boot.wim 导入到 Windows 部署服务 (WDS)、Microsoft System Center Configuration Manager (SCCM) 或 USB 驱动器
  22. 启动后,打开 PowerShell
    • 键入 Set-executionpolicy unrestricted 然后按 Enter
    • 键入 Import-Module DellBIOSProvider -Verbose,然后按 Enter
    • 键入 CD DellSMBIOS: 然后按 Enter

Affected Products

Dell Command | Configure, Dell Command | Powershell Provider
Article Properties
Article Number: 000146531
Article Type: How To
Last Modified: 13 Aug 2024
Version:  9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.