ProLiant Servers (ML,DL,SL)
Showing results for 
Search instead for 
Did you mean: 

HPE-Extract-CustomSppDrivers.ps1 - Script output issues

Occasional Advisor

HPE-Extract-CustomSppDrivers.ps1 - Script output issues


I was trying to perform the steps specified in this white paper:

I have successfully created a custom baselin, but when running the script "HPE-Extract-CustomSppDrivers.ps1" it does not extract the drivers to my specified output folder. It generates a sub folder inside my custom baseline folder for some reason.

This is how i use the script: .\HPE-Extract-CustomSppDrivers.ps1 "C:\Program Files\7-Zip" -CustomSPPOutputFolder "F:\2019Custom" -OutputFolderLocation "F:\2019CustomExtracted" 

(By the way, -OutputFolderLocation "F:\2019CustomExtracted" folder is empty..)

I am then presented with a question to overwrite files?
"7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18

Processing archive: F:\2019Custom\cp034635.exe

file F:\2019Custom\[0]~\cp034635.xml
already exists. Overwrite with
(Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? A"

If pressing Y, it would appear that files are now extracted into a sub-folder of my -CustomSPPOutputFolder "F:\2019Custom" (Which is supposed to be my source folder?!)

Another funny thing, when using the parameter -7ZipExecutablePath "C:\Program Files\7-Zip", it fails with:

F:\sccm-scvmm-osdeployment-master\HPE-Extract-CustomSppDrivers.ps1 : A positional parameter cannot be found that accepts argument 'C:\Program Files\7-Zip'.

I also tried running the script without specifying any switches, as the Example suggest e.g. 

.\HPE-Extract-CustomSppDrivers.ps1 "C:\Program Files\7-Zip" "F:\2019Custom" "F:\2019CustomExtracted"

I am using a Windows Server 2012R2 with powershell 5 installed.

Any help would be appreciated, and sorry if it is posted in the incorrect board.


Frequent Advisor

Re: HPE-Extract-CustomSppDrivers.ps1 - Script output issues


As per example given in the document 

.\HPE-Extract-CustomSppDrivers.ps1 “C:\Program Files\7-Zip” “C:\CustomSPP\2019Custom
This example reads all of the components from custom SPP created in the output folder ‘C:\CustomSPP\2019Custom’ and will extract the drivers to the C:\HPEDrivers folder.

you will need to place the 2019Custom in a subfolder to prevent overwrite

I am an HPE Employee
Occasional Advisor

Re: HPE-Extract-CustomSppDrivers.ps1 - Script output issues

erhm what? I don't follow you..

The output folder "C:\HPEDrivers" is already a completely different folder?

"C:\CustomSPP\2019Custom" is my folder i've extracted the Custom SPP to. aka. the Source folder

Anyways, i found a different script that did the same thing, and i was able to import the drivers into SCCM.