Unsolved
12 Posts
0
2640
Dell Command | Powershell provider does not import properly
I have deployed Dell Command | Powersehll provider 2.4.0 and have started having issues.
I am also trying to make BIOS changes with Dell Command | Configure tool, when I try to check that the settings took I use DPP to check for 'strongpassword'. Unfortunately it never loads.
Import-Module DellBiosProvider -ErrorAction SilentlyContinue
Import-Module DellBiosProvider -ErrorAction SilentlyContinue
if ((Get-Item DellSMBIOS:\Security\strongpassword).CurrentValue -eq 'Enabled'){
write-host 'Success.'
} else {
}
I couldn't get that to work so I tried manually, but that too fails with the following error:
Import-Module : Could not load file or assembly 'DSMBLibWrapper.dll' or one of its dependencies. The specified module could not be found.
Running it a second time gets the error to go away but the 'dellsmbios' PS drive still does not show up.
PS C:\WINDOWS\system32> Import-Module dellbiosprovider -Verbose
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\dellbiosprovider\dellbiosprovider.psd1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\dellbiosprovider\DellBIOSProvider.psm1'.
VERBOSE: Exporting function 'Set-Dell1stBootdevice'.
VERBOSE: Exporting function 'Get-DellBiosSettings'.
VERBOSE: Exporting function 'Clear-DellAdminPassword'.
VERBOSE: Exporting function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Exporting function 'Get-DellBIOSPasswordPath'.
VERBOSE: Exporting function 'Write-DellBIOSPassword'.
VERBOSE: Exporting function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Clear-DellAdminPassword'.
VERBOSE: Importing function 'Get-DellBIOSPasswordPath'.
VERBOSE: Importing function 'Get-DellBiosSettings'.
VERBOSE: Importing function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Set-Dell1stBootdevice'.
VERBOSE: Importing function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Importing function 'Write-DellBIOSPassword'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\dellbiosprovider\DellBIOSProvider.dll'.
VERBOSE: Starting PS provider DellSmbiosProv
VERBOSE: .NET Version: 4.0.30319.42000
VERBOSE: Performing InitializeDefaultDrives operation on the 'DellSmbiosProv'provider.
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
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : NewDriveProviderException,Microsoft.PowerShell.Commands.ImportModuleCommand
VERBOSE: Exporting function 'Clear-DellAdminPassword'.
VERBOSE: Exporting function 'Get-DellBIOSPasswordPath'.
VERBOSE: Exporting function 'Get-DellBiosSettings'.
VERBOSE: Exporting function 'Read-DellBIOSPassword'.
VERBOSE: Exporting function 'Set-Dell1stBootdevice'.
VERBOSE: Exporting function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Exporting function 'Write-DellBIOSPassword'.
VERBOSE: Importing function 'Clear-DellAdminPassword'.
VERBOSE: Importing function 'Get-DellBIOSPasswordPath'.
VERBOSE: Importing function 'Get-DellBiosSettings'.
VERBOSE: Importing function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Set-Dell1stBootdevice'.
VERBOSE: Importing function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Importing function 'Write-DellBIOSPassword'.
PS C:\WINDOWS\system32> get-psdrive
Name Used (GB) Free (GB) Provider Root CurrentLocation
---- --------- --------- -------- ---- ---------------
Alias Alias
C 27.25 433.25 FileSystem C:\ WINDOWS\system32
Cert Certificate \
D FileSystem D:\
Env Environment
Function Function
HKCU Registry HKEY_CURRENT_USER
HKLM Registry HKEY_LOCAL_MACHINE
Variable Variable
WSMan WSMan
PS C:\WINDOWS\system32> Import-Module dellbiosprovider -Verbose
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\dellbiosprovider\dellbiosprovider.psd1'.
VERBOSE: Importing function 'Clear-DellAdminPassword'.
VERBOSE: Importing function 'Get-DellBIOSPasswordPath'.
VERBOSE: Importing function 'Get-DellBiosSettings'.
VERBOSE: Importing function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Set-Dell1stBootdevice'.
VERBOSE: Importing function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Importing function 'Write-DellBIOSPassword'.
PS C:\WINDOWS\system32> get-psdrive
Name Used (GB) Free (GB) Provider Root CurrentLocation
---- --------- --------- -------- ---- ---------------
Alias Alias
C 27.25 433.25 FileSystem C:\ WINDOWS\system32
Cert Certificate \
D FileSystem D:\
Env Environment
Function Function
HKCU Registry HKEY_CURRENT_USER
HKLM Registry HKEY_LOCAL_MACHINE
Variable Variable
WSMan WSMan
PS C:\WINDOWS\system32>
I had VC++ 2013 installed but installed VC++ 2010 and 2012 just in case. I also copied over the VC++ dll's that I've seen suggested with no help.
Hoobie7
12 Posts
0
April 15th, 2021 13:00
Duplicate, please close or delete.