Seeing the RunOnce process when automatically dropping into Audit Mode

wesley ligtvoet 51 Reputation points
2022-01-13T05:30:40.977+00:00

Hi there,

For WDS, I wrote an answer file that instructs the client machine to drop into Audit Mode, instead of the OOBE.
When I try to put a command line in said answer file or in a HKLM RunOnce registry value, it gets stuck at the Welcome Administrator login screen.

However, when I hit CTRL-ALT-DEL followed by ESC, I'll get to see the result of said command line. (mostly test batch scripts that wait for keyboard input to close)

Is there a way to basically taskkill that Welcome screen that seems to get stuck?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,093 questions
0 comments No comments
{count} vote

Accepted answer
  1. Limitless Technology 39,641 Reputation points
    2022-01-13T18:54:44.607+00:00

    Hello @wesley ligtvoet

    All in all, the ideal would be to debug the scripts that are "locking" the screen, but you can avoid the Welcome screen and/or "setting up things" screens with the next registry change:

    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableFirstLogonAnimation" /t REG_DWORD /d 0 /f  
    

    Hope this helps with your query,

    ----
    --If the reply is helpful, please Upvote and Accept as answer--

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. wesley ligtvoet 51 Reputation points
    2022-01-13T18:39:33.18+00:00

    Found it!

    For my fellow sysadmins:
    Just put Windows-Shell-Setup/RunSynchronousCommand in the oobeSystem phase, even though you wrote the answer file to drop into Audit Mode instead of the actual OOBE.
    It goes to said command window in the blink of an eye.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.