tiny11builder icon indicating copy to clipboard operation
tiny11builder copied to clipboard

Access denied on edge files in WinSxS

Open SplitMilky opened this issue 1 year ago • 3 comments

I ran the script inicially with powerShell -ExecutionPolicy Bypass -File .\tiny11maker.ps1

and again with Set-ExecutionPolicy Unrestricted powerShell -File .\tiny11maker.ps1

Both resulted in all(?) the edge files not being removed.

https://pastebin.com/1ifX4A7j (100's of errors)

Remove-Item: C:\Users\wayne\Downloads\tiny11.-.nov24\tiny11builder-main\tiny11maker.ps1:161 Line | 161 | Remove-Item -Path $folderPath -Recurse -Force | Out-Null | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Access to the path 'C:\scratchdir\Windows\WinSxS\amd64_microsoft-edge-webview_31bf3856ad364e35_10.0.26100.4061_none_2ee12a8d3a9e7644\webview2_integration.dll' is denied. Remove-Item: C:\Users\wayne\Downloads\tiny11.-.nov24\tiny11builder-main\tiny11maker.ps1:161 Line | 161 | Remove-Item -Path $folderPath -Recurse -Force | Out-Null | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Access to the path 'C:\scratchdir\Windows\WinSxS\amd64_microsoft-edge-webview_31bf3856ad364e35_10.0.26100.4061_none_2ee12a8d3a9e7644\webview2_integration.dll' is denied.

In the end the image is built.

I haven't tested it yet.

SplitMilky avatar May 25 '25 21:05 SplitMilky

@SplitMilky I wouldn't use the image as it likely is missing the modifications... in fact your tiny11 iso might actually be bigger in size than the regular windows ISO. I am not sure if this is the case, but I think perhaps the issue is at the beginning... you need to run powershell as administrator for it to have rights to run the command with full access. If that is NOT the case, then likely when you entered the drive letter for the virtual drive the windows virtual iso is loaded in (example e:\ and you typed it into the script as e:\ or e:, which actually causes this issue. The script only needs the letter alone (e), if you entered any of the above then it messes with the script. Let us know if that works for you.

TheBeardofKnowledge avatar Jun 04 '25 23:06 TheBeardofKnowledge

@SplitMilky I wouldn't use the image as it likely is missing the modifications... in fact your tiny11 iso might actually be bigger in size than the regular windows ISO. I am not sure if this is the case, but I think perhaps the issue is at the beginning... you need to run powershell as administrator for it to have rights to run the command with full access. If that is NOT the case, then likely when you entered the drive letter for the virtual drive the windows virtual iso is loaded in (example e:\ and you typed it into the script as e:\ or e:, which actually causes this issue. The script only needs the letter alone (e), if you entered any of the above then it messes with the script. Let us know if that works for you.

I'm also getting these errors. I've made sure Powershell is run as admin, and I only used the drive letter, no characters other than the letter by itself. I'm stumped at this point. My iso was created by the official media creation tool downloaded directly from Microsoft. I've also cleaned up and re-ran the script several times, making sure I did everything correctly each time.

Ritaku02 avatar Aug 01 '25 17:08 Ritaku02

Gonna try what another user did, and install the Windows ADK. Then I'll run the script again, see if that changes anything.

Ritaku02 avatar Aug 01 '25 18:08 Ritaku02