Getting stuck at the Just a moment screen

Phearin

New Member
Messages
24
Reaction score
2
Hi all,

I am doing add PowerShell script into Before Log-on section.
Yet after installing phase has finished, the device restarted and getting stuck at the Just a moment screen.

Whenever at the stuck screen, I do require to restart device once then the Powershell Script is about display pop up message for entering the email address, but it looks like script didn't work, since the script to to add email address to store in the registry key.

Any suggestions?

Thanks,
PS
 
Commands executed in normal Post-Setup (Before logon) cannot be interactive. This has always been the rule since W10.

Windows install is running under SYSTEM privileges, to allow user input to a running command could open a security hole if your script or executable was poorly written in regards to escaped shell commands. Where an interactive script can be executed is during the specialize pass.

To switch the Post-Setup (Before logon) to run during the specialize pass, two settings must be changed:
1. Enable Unattended mode. You're not required to make any further changes (if you don't need to).
2. From the Post-Setup screen, check the toolbar box for Unattended.

After switching to the specialize pass, Post-Setup commands will be executed before OOBE.

View attachment 14131
 
Commands executed in normal Post-Setup (Before logon) cannot be interactive. This has always been the rule since W10.

Windows install is running under SYSTEM privileges, to allow user input to a running command could open a security hole if your script or executable was poorly written in regards to escaped shell commands. Where an interactive script can be executed is during the specialize pass.

To switch the Post-Setup (Before logon) to run during the specialize pass, two settings must be changed:
1. Enable Unattended mode. You're not required to make any further changes (if you don't need to).
2. From the Post-Setup screen, check the toolbar box for Unattended.

After switching to the specialize pass, Post-Setup commands will be executed before OOBE.

View attachment 14131
garlin I followed your instruction. As result, we could see the pop up prompt for user interaction to input. Yet, when I tried to go to the registry path where the script add the value to, it never happen. Note: if I tested my code separately in the using Windows Powershell, it works as normal. Any thought?
 
Windows is running as SYSTEM, so HKCU applies to the SYSTEM identity. If you want a key to apply to an user account, then a script must run in Post-Setup (After logon). But obviously that happens after OOBE.
 
garlin The Prompt user UPN is working very well after change way of working to use csv file instead of registry. Is there any chances to install M365 Office applications silently before user logon?
 
Back
Top