winutil icon indicating copy to clipboard operation
winutil copied to clipboard

oscdimage not found on the system

Open 13mhz opened this issue 2 years ago • 16 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen. While running MicroWin, there is an errorr saying oscdimage.exe not found file is pressent at: c:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg
oscdimg

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here. this is 23h2, upgraded from w10 22h2

13mhz avatar Dec 07 '23 03:12 13mhz

Zrzut ekranu 2023-12-07 033020

13mhz avatar Dec 07 '23 03:12 13mhz

What happens when you run this in your PowerShell prompt?

Get-Command -Type Application oscdimg

As an example of what you should hope to see: image

munkk01 avatar Dec 07 '23 04:12 munkk01

image im getting this error while it installs ADK.

tezpadhye avatar Dec 07 '23 15:12 tezpadhye

Zrzut ekranu 2023-12-07 204227 Not that lucky unfortunately...

13mhz avatar Dec 07 '23 20:12 13mhz

Basically the same as #1269.

Not that lucky unfortunately...

Try Get-Command -Type Application 'oscdimg.exe' That might work.

If it does, Mr. Munkk knows which line to edit. :)

PowerCoder avatar Dec 09 '23 07:12 PowerCoder

@PowerCoder did one of you guys raise a PR for this? Or do you want me to do it so you can also test it?

@ChrisTitusTech I really think we should rethink this whole pulling down ADK, I know it is the safest from the perspective of "getting the legit binary" but it might be better to just check in that binary into the git repo with SHA256 and download it from there, or BASE64 it right into the winutil.ps1

KonTy avatar Dec 09 '23 18:12 KonTy

@PowerCoder did one of you guys raise a PR for this? Or do you want me to do it so you can also test it?

@ChrisTitusTech I really think we should rethink this whole pulling down ADK, I know it is the safest from the perspective of "getting the legit binary" but it might be better to just check in that binary into the git repo with SHA256 and download it from there, or BASE64 it right into the winutil.ps1

I have not raised a PR for this. I have been AFK all weekend. I haven't dealt with this behavior myself so I still need to test it to ensure a proper PR to fix it. I won't be able to look until tomorrow sometime.

munkk01 avatar Dec 10 '23 22:12 munkk01

Not sure if I'm adding new information here but it seems that there is an obvious typo. The script calls for oscdimge instead of oscdimg. Capture3 Capture1 Capture2 Therefore, the process abort. Should be an easy one to fix.

rocobruno avatar Dec 12 '23 15:12 rocobruno

Not sure if I'm adding new information here but it seems that there is an obvious typo. The script calls for oscdimge instead of oscdimg. Capture3 Capture1 Capture2 Therefore, the process abort. Should be an easy one to fix.

Those are just print type messages. Shouldn't affect runtime code I don't think. Still should be updated. Thanks!

munkk01 avatar Dec 12 '23 15:12 munkk01

I noticed that as well, figured I'd been complaining enough and probably shouldn't start talking about print typos as well. :)

Haven't been able to test anything, sorry. I'm in the middle of a reinstall of my home workstation. It's how I ended up here in the first place, looking for something to debloat a fresh install with. I need it for work so I haven't been able to test.

PowerCoder avatar Dec 12 '23 15:12 PowerCoder

Could be a simple string issue with no impact but incidentally the process abort ritght there for me... ADK is installed and I have choco installed as well. Could it be a language issue ? I'm using a french-canadian Windows version.

rocobruno avatar Dec 12 '23 16:12 rocobruno

Could be a simple string issue with no impact but incidentally the process abort ritght there for me... ADK is installed and I have choco installed as well. Could it be a language issue ? I'm using a french-canadian Windows version.

Question; does your username have a space in it? Like C:\Users\roco bruno\?

munkk01 avatar Dec 12 '23 16:12 munkk01

Nope, it is C:\Users\Tech

rocobruno avatar Dec 12 '23 17:12 rocobruno

Since my validation came back as $False until I did "Get-Command -Type Application 'oscdimg.exe'" instead of "Get-Command -Type Application oscdimg" that might be the fix in @rocobruno 's case. The screenshot shows the latter one. Same might help @13mhz . @tezpadhye has the space-in-username issue.

PowerCoder avatar Dec 12 '23 17:12 PowerCoder

Closed due to inactivity

github-actions[bot] avatar Feb 22 '24 00:02 github-actions[bot]

the dev branch works✅ irm "https://christitus.com/windev" | iex

thombre1 avatar Oct 08 '24 13:10 thombre1