Dell Command | PowerShell Provider: Is not working properly or can't be imported into PowerShell correctly

Dell Command | PowerShell Provider: Is not working properly or can't be imported into PowerShell correctly



The following article deals with DellBIOSProvider (Dell Command | PowerShell Provider) not working correctly or importing correctly to Windows PowerShell


Table of Contents:

  1. Problem Details
  2. Minimum Requirements
  3. What is Dell Command | PowerShell Provider?
  4. What is PowerShell?
  5. Recommended Solution

Problem Details

Anyone using a Dell product and wanting to manage their BIOS settings from within PowerShell, will install the latest version of Dell's Command | PowerShell Provider module. However there might me problems importing the module or later when using the Cmdlets.

Note: A cmdlet is a command that is used in the Windows PowerShell environment. PowerShell runtime opens these cmdlets within the context of the automation scripts that are provided at the command line. PowerShell runtime also opens them through APIs (Application Program Interface).
Note: For those who import the module using Import-Module DellBIOSProvider you may not see any of the relevant error messages and think the import was successful.

We recommend you import the module using Import-Module DellBIOSProvider -verbose. This will show every step and error message during the process.

Here are some error's you might see:

  • During import the DellBIOSProvider module is not detected:

    Import Module : The specified module 'DellBIOSProvider' was not loaded because no valid module file was found in the module directory.
    At line:1 char:1
    - Import Module DellBIOSProvider - verbose

  • During Import the file DSMBLibWrapper.dll is not found:

    Import Module : Could not load file or assembly 'DSMBLibWrapper.dll' or one of its dependencies. The specified module could not be found.
    At line:1 char:1
    - Import Module DellBIOSProvider

    or

    Import Module : Could not load file or assembly 'DSMBLibWrapper.dll' or one of its dependencies. The specified module could not be found.
    At line:1 char:1
    - Import Module DellBIOSProvider -verbose

  • Cmdlet fails with error message:

    get-childitem : Cannot find drive. A drive with the name 'DellSmbios' does not exist.
    At C:\Program Files\Dell\PowerShell\Modules\DellBIOSProvider\Get-DellBIOSSettings.psl:13 char:22
    - $DellBIOS = get-childitem -path DellSmbios:\ | select catego...

    This can be verified using the following command:

    Get-PSDrive:


Back to Top


Minimum Requirements

If you are seeing the kinds of errors described above during import or use of the Dell Command | PowerShell Provider utility, then some essential steps have not been followed during the installation process.

Minimum Requirements:

  • Operating System Types: Windows 7, Windows 8, Windows 8.1 and Windows 10
  • Windows Management Framework (WMF): 3.0, 4.0, 5.0 and 5.1
  • Windows PowerShell: 3.0 and later (can be upgraded for Windows 7)
  • SMBIOS: 2.3 and later on a Dell Product


Back to Top


What is Dell Command | PowerShell Provider?

Dell Command | PowerShell Provider is a PowerShell module that provides BIOS configuration capability to Dell Client systems such as the OptiPlex, Latitude, Venue 11 Pro, XPS Notebook, and Precision systems using the Windows PowerShell Interface. This module, with its native configuration capability, makes BIOS configuration most manageable for system administrators.

Dell Command | PowerShell Provider can be used on Windows 7, Windows 8, Windows 8.1, Windows 10 and Windows Pre-installation Environment (Windows PE 4.0 onwards) operating systems.


Back to Top


What is PowerShell?

In computer terms, the shell is a user interface that allows you access to various services of an operating system. It can be either command-line based or use a graphical user interface (GUI). Windows PowerShell was created by Microsoft for task automation and configuration management. It's based on the .NET framework and includes a command-line shell and a scripting language.

Windows PowerShell is a tool that was intended to be much more powerful than the Command Prompt for the Windows operating system. This tool is intended to help you automate a lot of administration tasks, such as identifying USB devices installed on either one or multiple systems on a network, identify and kill processes or filter information about systems or their network in an easily read HTML format. It gives you the ability to create scripts and link commands together and much more than we can discuss here.


Back to Top


Recommended Solution

Please check and follow the next set of steps exactly.

  1. Please make sure you are meeting the minimum requirements to proceed

  2. The Dell Command | PowerShell Provider download package contains two folders depending on your CPU/OS architecture. The correct folder (32bit OS -> DellBIOSProviderX86; 64bit OS -> DellBIOSProvider) has to be copied to the right destination folder.

  3. The module folder by default for the Windows PowerShell is C:\Program Files\WindowsPowerShell\Modules or $[env:ProgramFiles]\WindowsPowerShell\Modules depending on your OS architecture.

  4. Additionally you can copy the folder to C:\Program Files\Dell\PowerShell\Modules or $[env:ProgramFiles]\Dell\PowerShell\Modules

  5. You can confirm the folder copied to the correct destination by using the following command in the PowerShell:

    Get-Module -ListAvailable

    The output from the command should look like the following picture reference (Fig.1).

Get-Module

(Fig.1 Get-Module -ListAvailable command results)

  1. If the DellBIOSPRovider module is properly listed you can import it into the PowerShell. However before doing this, please ensure that the following two software packages are installed on your system:

    • Microsoft Visual C++ redistributable 2010

    • Microsoft Visual C++ redistributable 2012

    If you can't find them, please install them and then reboot your system.

  2. Now you can import DellBIOSProvider into the PowerShell (with Administrator Rights) by using the following command:

    Import-Module DellBIOSProvider -verbose

    To list each step of the install

  3. Verify that DellSmbios is available by running the following command:

    Get-PSDrive

    Check the output that the correct alias shows up

  4. If you showing everything is properly install, you can begin using the Dell Command | PowerShell Provider features and functions. Such as the following command:

    Get-DellBIOSSettings

    This will open the window shown in the following picture reference Fig.2

DellBIOS | Out

(Fig.2 DellBIOS | Out-GridView Window)


Back to Top






Artikel-ID: SLN308274

Senast ändrad: 09/20/2019 10:42 PM


Betygsätt den här artikeln

Korrekt
Användbart
Lätt att förstå
Var den här artikeln till nytta?
Ja Nej
Skicka dina synpunkter
Kommentarer får inte innehålla följande specialtecken: <>()\
Vårt feedbacksystem är tyvärr ut funktion just nu. Försök igen senare.

Tack för dina synpunkter.