【Win】Dell Command PowerShell Provider is a powerful IT tool

Dell Command | PowerShell Provider is a powerful IT tool that allows users to easily manage the BIOS configuration of Dell hardware platforms through the Windows PowerShell interface. It provides a series of PowerShell cmdlets commands that can help IT administrators control and manage BIOS configuration of Dell hardware platforms. To enable the use of PowerShell scripts to automate and batch manage BIOS settings for Dell hardware. In addition to running locally, BIOS configuration management can also be performed on remote systems. It can be used in Windows 11, Windows 10 and Windows Preinstallation Environment (WinPE 4.0 and above) operating systems. In short, Dell Command | PowerShell Provider is a convenient and powerful tool that enables IT administrators to easily manage the BIOS configuration of the Dell platform through the PowerShell interface.

Prerequisites

Installing Dell Command | PowerShell Provider requires the following conditions:

  • Operating system:
    Windows 7 and above
  • Windows Management Framework (WMF):
    WMF 3.0, 4.0, 5.0, and 5.1 must be available.
  • Windows PowerShell:
    The version needs to be 3.0 or higher.
  • SMBIOS:
    The target system must be a system manufactured by Dell, and the SMBIOS version must be 2.4 or higher.
  • Microsoft Visual C++ redistributable:
    The 2010, 2015, and 2019 versions of Visual C++ redistributable must be installed.

Install

1. PowerShell library online installation

2. Offline installation

If you want to consolidate all the steps to download, unzip, and install the Dell Command | PowerShell Provider 2.7 module, follow this process:

  1. Open your browser and visit https://www.dell.com/support/home/en-us/drivers/DriversDetails?driverId=DYRY8

  2. Click the "Available Formats" tab, then click "Download" to complete the download.Insert image description here

  3. Run Powershell ISE as administrator, copy the Powershell code, and modify the zip file path.

# 指定ZIP文件的路径 修改为你下载的zip文件地址
$zipFile = "C:\Downloads\DellCommandPowerShellProvider2.7.0_92.zip"

# 解压缩ZIP文件到临时文件夹
$unzipFolder = $env:TEMP + "\" + (Get-Item $zipFile).Name
Expand-Archive -Path $zipFile -DestinationPath $unzipFolder -Force

$psModulesPath = "${env:ProgramFiles}\WindowsPowerShell\Modules"

# 检查操作系统是否为64位
if ([Environment]::Is64BitOperatingSystem) {
    
    
    $moduleName = "DellBIOSProvider"
    $tempModulePath = $unzipFolder + "\" + $moduleName
    $moduleVersion = (Get-Content -Path "$tempModulePath\DellBIOSProvider.psd1" -Raw | Select-String -Pattern "ModuleVersion\s+=\s+'(.+)'").Matches.Groups[1].Value

    $modulePath = "$psModulesPath\$moduleName\$moduleVersion"

    # 检查模块是否已存在
    if (Test-Path -Path $modulePath) {
    
    
        Write-Host "$modulePath Version $moduleVersion 已存在。"
    } else {
    
    
        New-Item -Type Container -Force -Path "$modulePath\$moduleVersion"
        Copy-Item -Path "$tempModulePath\*" -Destination "$modulePath" -Recurse -Force
        Import-Module $moduleName

        # 输出已加载的模块和可用的驱动器
        Get-Module | Format-Table
        Get-PSDrive | Format-Table
    }
}

# 删除临时文件夹
Remove-Item -Path $unzipFolder -Recurse -Force
  1. Check the output of the above code. If there is the following screenshot, the installation is successful.
    ![[Pasted image 20230823141040.png]]

Simple application (turn on Wake Up On AC)

  1. Use Get-Module -ListAvailable -Name DellBIOSProviderto determine whether the DellBIOSProvider module is installed in the system, and whether the module is available and loaded.
    Insert image description here

  2. Load the DellBIOSProvider module
    Insert image description here

  3. View WakeOnAC settings
    Insert image description here

  4. Open WakeOnAC settings and query the results
    Insert image description here

For more other applications, please refer to [ DELL Official User Manual ].

Guess you like

Origin blog.csdn.net/u012153104/article/details/132451951