OSDeploy / OSDCloud

OSDCloud is a process to fully deploy a Windows OS from a WinPE Environment
https://osdcloud.osdeploy.com
61 stars 13 forks source link

Drivers not being installed properly #16

Open iamacarpet opened 2 years ago

iamacarpet commented 2 years ago

After the latest update, drivers are no longer being installed properly on Dell machines.

It returns an error about osdcloud-SetupCompleteCreateStart being unrecognised or not found.

Force downgrade works perfectly: Install-Module -Name OSD -RequiredVersion 22.6.22.3

UbiquitousChris commented 2 years ago

I have also seen this in the 22.6.30.1.

I have attached full logs from a run where this failed, but here is a snippet of the errors I'm seeing.

2022-07-08-121503
Creating SetupComplete Files and populating with requested tasks.
osdcloud-SetupCompleteCreateStart : The term 'osdcloud-SetupCompleteCreateStart' is not recognized as the name of a 
cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify 
that the path is correct and try again.
At X:\Program Files\WindowsPowerShell\Modules\OSD\22.6.30.1\Public\OSDCloud.ps1:1223 char:5
+     osdcloud-SetupCompleteCreateStart
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (osdcloud-SetupCompleteCreateStart:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
osdcloud-SetupCompleteCreateStart : The term 'osdcloud-SetupCompleteCreateStart' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At X:\Program Files\WindowsPowerShell\Modules\OSD\22.6.30.1\Public\OSDCloud.ps1:1223 char:5
+     osdcloud-SetupCompleteCreateStart
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (osdcloud-SetupCompleteCreateStart:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

osdcloud-SetupCompleteDefenderUpdate : The term 'osdcloud-SetupCompleteDefenderUpdate' is not recognized as the name of 
a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify 
that the path is correct and try again.
At X:\Program Files\WindowsPowerShell\Modules\OSD\22.6.30.1\Public\OSDCloud.ps1:1227 char:13
+             osdcloud-SetupCompleteDefenderUpdate
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (osdcloud-SetupCompleteDefenderUpdate:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
osdcloud-SetupCompleteDefenderUpdate : The term 'osdcloud-SetupCompleteDefenderUpdate' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At X:\Program Files\WindowsPowerShell\Modules\OSD\22.6.30.1\Public\OSDCloud.ps1:1227 char:13
+             osdcloud-SetupCompleteDefenderUpdate
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (osdcloud-SetupCompleteDefenderUpdate:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

It does download and expands all the necessary driver packs, it just skips actually applying them to the Windows install. As a workaround, I can run the following command from PowerShell with the downloaded driver packs: Add-WindowsDriver -Path c:\ -Driver c:\Drivers -Recurse

On new Latitude 5430s and Precision 5570s, not running this command leaves the device in an unbootable state.

Logs.zip .