Score:0

Windows 11 WDS unattend xml answer file not doing asynchronousCommand

cn flag

I am currently trying to use WDS to deploy a windows 11 image. I want to run a powershell script after the admin logs in (prompt for the computer name) but I can't even get an mkdir to work. Am I doing something wrong? can I check logs or something on the local computer to debug what happened and what error it returns?

    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <InputLocale>0813:00000813</InputLocale>
            <SystemLocale>nl-BE</SystemLocale>
            <UILanguage>nl-NL</UILanguage>
            <UserLocale>nl-BE</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Name>Administrator</Name>
                        <Group>Administrators</Group>
                        <Password>
                            <Value>password</Value>
                            <PlainText>true</PlainText>
                        </Password>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <AutoLogon></AutoLogon>
            <OOBE>
                <ProtectYourPC>3</ProtectYourPC>
                <HideEULAPage>true</HideEULAPage>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            </OOBE>
            
            <!-- Not running? -->
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                   <CommandLine>powershell.exe mkdir C:\TEST\</CommandLine>
                   <Description>Open powershell</Description>
                   <Order>1</Order>
                </SynchronousCommand>
             </FirstLogonCommands>

        </component>
    </settings>

In the panther unattended file everything is there, except the FirstLogonCommands tag and its content. It is just simply not there.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.