Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error access files #160

Open
TOWUK opened this issue Apr 30, 2024 · 11 comments
Open

error access files #160

TOWUK opened this issue Apr 30, 2024 · 11 comments

Comments

@TOWUK
Copy link

TOWUK commented Apr 30, 2024

i have full access / powershell 7 / admin privileges... original file from uupdump win 11 24h2 with updates:

tiny11.log

@ntdevlabs
Copy link
Owner

Have you tried using the standard Powershell included in Windows instead of Powershell 7?

@TOWUK
Copy link
Author

TOWUK commented Apr 30, 2024

Have you tried using the standard Powershell included in Windows instead of Powershell 7?

no...

@TOWUK
Copy link
Author

TOWUK commented Apr 30, 2024

i try standart powershell and dont have access sratchdir WTF?
image

@TOWUK
Copy link
Author

TOWUK commented Apr 30, 2024

image

@TOWUK
Copy link
Author

TOWUK commented Apr 30, 2024

image

@Elrondo46
Copy link
Contributor

Same problems, lots of errors accessing. Error registry tweaks


Writing 946 files in 86 directories to E:\Users\ELYOAKE\Desktop\tiny11builder-main\tiny11.iso

100% complete

Storage optimization saved 3 files, 18432 bytes (0% of image)

After optimization, image file is 6095169536 bytes
Space saved because of embedding, sparseness or optimization = 18432

Done.
Creation completed! Press any key to exit the script...
Press Enter to continue:```

@ntdevlabs
Copy link
Owner

Apparently this issue was caused by icacls not taking finding the Administrators user group in languages where the word 'administrator' is spelled differently. An update was pushed that should fix this. let me know how it goes!

@Elrondo46
Copy link
Contributor

Fixed changing all for: "Administrateurs" in french

@TOWUK
Copy link
Author

TOWUK commented May 2, 2024

win11 iso file (26100.268.240408-1720.GE_RELEASE_SVC_IM_CLIENTPRO_OEMRET_X64FRE_RU-RU)
‼️ okay, thx for some fix and regkey have errors! and other errors in next steps:
tiny11.log

@juliendevops
Copy link

Hi,
It may be possible to use the Admin group SID in the script, it should always be "S-1-5-32-544" as mentioned by MS itself (https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers).

It should be possible to use the actual name of the security group like this :
$AdminGroupName = (Get-LocalGroup -SID S-1-5-32-544).name

It could be easier to use the SID for some commands and the name for others.
I'm testing it but didn't have time to finish.

I'll try in the next couple of days.

@juliendevops
Copy link

juliendevops commented May 17, 2024

Hi, It may be possible to use the Admin group SID in the script, it should always be "S-1-5-32-544" as mentioned by MS itself (https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/understand-security-identifiers).

It should be possible to use the actual name of the security group like this : $AdminGroupName = (Get-LocalGroup -SID S-1-5-32-544).name

It could be easier to use the SID for some commands and the name for others. I'm testing it but didn't have time to finish.

I'll try in the next couple of days.

These changes have removed all errors related to accesses on my setup (french OS).
Replace line 21 with these two lines if you want to test :
$adminRoleSID = Get-LocalUser | Where-Object {$_.sid -like "S-1-5-21*-500"} $adminRole=[System.Security.Principal.WindowsBuiltInRole]::($adminRoleSID.name)

juliendevops added a commit to juliendevops/tiny11builder that referenced this issue May 17, 2024
Make adminRole dynamic for non english OS users to prevent errors during script execution
Related to ntdevlabs#160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants