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

Issues, wrong parameters, files being in used etc.. Ran as admin and Trusted installer, logs inside. #162

Open
wazerstar opened this issue May 1, 2024 · 7 comments

Comments

@wazerstar
Copy link

wazerstar commented May 1, 2024

I decided to test the script using the latest uup Windows 11, version 23H2 (22631.3527) amd64 Danish version

This is a clean and fresh windows 11 Danish Pro version btw.

Ran powershell as admin

Did

set-executionpolicy remotesigned and picked All

Set-ExecutionPolicy unrestricted and picked All

The log from just running powershell as admin with following commands above..

normal_admin_tiny11.log

I decided to test with nsudo with TrustedInstaller Rights running powershell at highest possible level.

It did a bit better but still bugs.

nsudo_trustedinstaller_admin_tiny11.log

I'm not going to bother installing this because it still says wrong parameters

One of the issues I noticed is that you would need to call an universal cmd for Administrators since In Danish its called Administratorer.
I guess you need to parse/list what its called into an array or something and then pick what its called.

I also found issues with

Loading registry...
ERROR: The system was unable to find the specified registry key or value.
ERROR: The system was unable to find the specified registry key or value.
ERROR: The system was unable to find the specified registry key or value.
ERROR: The system was unable to find the specified registry key or value.
ERROR: The system was unable to find the specified registry key or value.
reg load HKLM\zCOMPONENTS $mainOSDrive\scratchdir\Windows\System32\config\COMPONENTS
reg load HKLM\zDEFAULT $mainOSDrive\scratchdir\Windows\System32\config\default
reg load HKLM\zNTUSER $mainOSDrive\scratchdir\Users\Default\ntuser.dat
reg load HKLM\zSOFTWARE $mainOSDrive\scratchdir\Windows\System32\config\SOFTWARE
reg load HKLM\zSYSTEM $mainOSDrive\scratchdir\Windows\System32\config\SYSTEM
@wazerstar
Copy link
Author

Ok I decided to rename Administrators > Administratorer in the script file and reran, it was much better but still errors showing up..

mod_tiny11.log

@ntdevlabs
Copy link
Owner

Yeah, looks like almost all of the issues are due to the Administrator user group having a different name in Danish. However, it's odd that it can't fully unmount the image. Have you tried restarting the computer?

@wazerstar
Copy link
Author

Yeah, looks like almost all of the issues are due to the Administrator user group having a different name in Danish. However, it's odd that it can't fully unmount the image. Have you tried restarting the computer?

Yeah I did and still same, I even did use Remove_Failure_MountDir_TempDir.cmd
Remove_Failure_MountDir_TempDir.txt

Which successful unmounted the dirs, but running the script after it still said it again.

I guess you can use this to detect different administrator languages and then replace "Administrators" with $AdminGroupName

$AdminGroupName = (Get-WmiObject -Class Win32_Group -Filter 'LocalAccount = True AND SID = "S-1-5-32-544"').Name

@ntdevlabs
Copy link
Owner

Already working on a fix. Now I'm testing it
image

@ntdevlabs
Copy link
Owner

I just pushed a new update that should fix this issue. Let me know how it goes!

@wazerstar
Copy link
Author

I just pushed a new update that should fix this issue. Let me know how it goes!

You are still using Administrators in other parts of the script which needed to be replaced as well and then still other errors.

https://i.imgur.com/ozZK9DN.png

tiny11.log

tiny11.iso is around 5.7gigs not tiny :)

@ntdevlabs
Copy link
Owner

Yeah, you're right. Haven't noticed those, sorry about that. Testing the changes again :)

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

2 participants