OSD icon indicating copy to clipboard operation
OSD copied to clipboard

'Invoke-oobeRemoveAppx' is not recognized as the name of a cmdlet, function, script file, or operable program

Open NicoJDE opened this issue 2 years ago • 0 comments

Discussed in https://github.com/OSDeploy/OSD/discussions/75

Originally posted by ezjurgen August 24, 2023 When running Start-OOBEDEPLOY (after installing and importing OSD module) as part of a TS in the OOBE phase I get the error above. I would assume the cmdlet is part of the OSD module no? googling it does point to the Start-OOBEDeploy script but not much further.

any help? Here is the full script

PS C:\Windows\system32> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
import-module osd
$Params = @{
    Autopilot = $false
    RemoveAppx = "CommunicationsApps","OfficeHub","People","Skype","Solitaire","Xbox","ZuneMusic","ZuneVideo"
    UpdateDrivers = $true
    UpdateWindows = $true
}
Start-OOBEDeploy @Params
=========================================================================
Start-OOBEDeploy
=========================================================================
2023-08-24-044621 Start-Transcript
Transcript started, output file is C:\Windows\Temp\2023-08-24-044621-OOBEDeploy.log
Exporting Configuration C:\Users\EZADMI~1\AppData\Local\Temp\OSDeploy.OOBEDeploy.json
=========================================================================
2023-08-24-044626 Invoke-oobeRemoveAppx -RemoveAppx
Invoke-oobeRemoveAppx : The term 'Invoke-oobeRemoveAppx' 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 C:\Program Files\WindowsPowerShell\Modules\osd\23.8.18.1\Public\OOBEDeploy\Start-OOBEDeploy.ps1:206 char:13
+             Invoke-oobeRemoveAppx -RemoveAppx $RemoveAppx
+             ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Invoke-oobeRemoveAppx:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
=========================================================================
2023-08-24-044626 Invoke-oobeUpdateDrivers
Device Drivers are being updated in a minimized window
Use Alt+Tab to switch Windows and view progress
=========================================================================
2023-08-24-044633 Invoke-oobeUpdateWindows
Windows Updates are being updated in a minimized window
Use Alt+Tab to switch Windows and view progress
=========================================================================
WARNING: Restart-Computer before completing OOBE
=========================================================================

NicoJDE avatar Nov 20 '23 12:11 NicoJDE