Windows 10: FirstLogonCommands only works on 32bit architecture

Discus and support FirstLogonCommands only works on 32bit architecture in Windows 10 Installation and Upgrade to solve the problem; I've got 2 Windows installations which are identical, the same settings, the same programs. The only difference is that the Windows architecture is... Discussion in 'Windows 10 Installation and Upgrade' started by Dreiba, Aug 25, 2016.

  1. Dreiba Win User

    FirstLogonCommands only works on 32bit architecture


    I've got 2 Windows installations which are identical, the same settings, the same programs. The only difference is that the Windows architecture is different, the one is 32bit and the other one is 64bit.

    When having sysprepped my 32bit installation with the following answer file:

    Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <FolderLocations> <ProfilesDirectory>U:\Users</ProfilesDirectory> </FolderLocations> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Windows\System32\Scripts\PinTaskbarItems\Managetaskbar\Taskband.ps1</CommandLine> <Description>Sets the pinned taskbar items and restarts the explorer process</Description> <Order>1</Order> <RequiresUserInput>false</RequiresUserInput> </SynchronousCommand> </FirstLogonCommands> </component> </settings> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DesktopOptimization> <ShowWindowsStoreAppsOnTaskbar>false</ShowWindowsStoreAppsOnTaskbar> </DesktopOptimization> <CopyProfile>true</CopyProfile> <DoNotCleanTaskBar>true</DoNotCleanTaskBar> <EnableStartMenu>true</EnableStartMenu> </component> </settings> <cpiFirstLogonCommands only works on 32bit architecture :eek:fflineImage cpi:source="wim:c:/users/bas/desktop/iso&apos;s/x32/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>[/quote] It's currently only about the `FirstLogonCommands` part, which totally works fine after 32bit sysprep. The command runs without any errors and gives back the desired result.

    When having adjusted the answer file for my 64bit installation, it looks like this:

    Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DesktopOptimization> <ShowWindowsStoreAppsOnTaskbar>false</ShowWindowsStoreAppsOnTaskbar> </DesktopOptimization> <CopyProfile>true</CopyProfile> <DoNotCleanTaskBar>true</DoNotCleanTaskBar> <EnableStartMenu>true</EnableStartMenu> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <FolderLocations> <ProfilesDirectory>U:\Users</ProfilesDirectory> </FolderLocations> <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -ExecutionPolicy Bypass -File C:\Windows\System32\Scripts\PinTaskbarItems\Managetaskbar\Taskband.ps1</CommandLine> <Description>Sets the pinned taskbar items and restarts the explorer process</Description> <Order>1</Order> <RequiresUserInput>false</RequiresUserInput> </SynchronousCommand> </FirstLogonCommands> </component> </settings> <cpiFirstLogonCommands only works on 32bit architecture :eek:fflineImage cpi:source="wim:e:/sources/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>[/quote] The only thing that's reversed is the `pass` parameter of the `settings` key. When I tried this answer file on the 64bit installation sysprep, the `FirstLogonCommands` did not run. The rest of the answer file worked perfectly, just as the 32bit version.

    Both of the answer files are validated by WSIM.

    I tried copying the line from the `<CommandLine>` key into a CMD (with or without administrator priveleges) and running this. When this run, the command just run without any errors.

    The problem is that the script is not running on my 64bit installation sysprep.

    How does this come and how can I make this script run by using this answer file?


    I have also tried to replace the CommandLine with just a call to a CMD script which creates a directory, this didn't work aswell, where it did on the 32bit version.

    When trying to run this script by hand via a regular CMD without admin privileges, it said permission denied. Does it have to do with system permissions on the Windows folder?

    The command line option then looked like this:

    <CommandLine>C:\Windows\System32\Scripts\myScript.cmd</CommandLine>

    I am 100% sure the scripts are in place and are not containing any errors.

    :)
     
    Dreiba, Aug 25, 2016
    #1

  2. Windows10 32bits to 64bits

    Hello i upgraded my windows 7 32bit to windows 10 32bit and already activated. I'm trying to perform a clean installation of Windows 10 64bit but my key isn't working. Can i change the architecture or not? In a post here it says that you can change the
    architecture with this method but isn't working for me.
     
    LeviathanS, Aug 25, 2016
    #2
  3. BulldogXX Win User
    dose windows 10 32bit x86 work on windows 8.1 32bit x64 while update???

    1 GB of RAM is insufficient for Windows 10, and you'll quickly run out of storage space with only 32 GB.

    x86 means 32-bit architecture

    x64 means 64-bit architecture

    Thus, "32bit x64" doesn't exist
     
    BulldogXX, Aug 25, 2016
    #3
Thema:

FirstLogonCommands only works on 32bit architecture

Loading...
  1. FirstLogonCommands only works on 32bit architecture - Similar Threads - FirstLogonCommands works 32bit

  2. can you make a 32bit version of wndows 11 for older pc that only support 32bit

    in Windows 10 Gaming
    can you make a 32bit version of wndows 11 for older pc that only support 32bit: can you make a 32bit version of windows 11 for older pc that only support 32bit https://answers.microsoft.com/en-us/windows/forum/all/can-you-make-a-32bit-version-of-wndows-11-for/095fe503-95af-40c6-864f-838fd916fe34
  3. can you make a 32bit version of wndows 11 for older pc that only support 32bit

    in Windows 10 Software and Apps
    can you make a 32bit version of wndows 11 for older pc that only support 32bit: can you make a 32bit version of windows 11 for older pc that only support 32bit https://answers.microsoft.com/en-us/windows/forum/all/can-you-make-a-32bit-version-of-wndows-11-for/095fe503-95af-40c6-864f-838fd916fe34
  4. system requirements architecture

    in Windows 10 Software and Apps
    system requirements architecture: I cant install any games from microsoft store they all have an "x" next to "system architecture: x64"Is there a fix for this? or is my device just not compatible with all the games on the store?...
  5. FirstLogonCommands in unattend.xml do not work

    in Windows 10 Support
    FirstLogonCommands in unattend.xml do not work: Hello. I have created an unattend answer file to be used with a windows 10 image and I am experiencing an issue. I have placed a powershell command under the "FirstLogonCommands" but it is never run. Here is my answer file: HTML Code: <?xml version="1.0" encoding="utf-8"?>...
  6. Upgrade Architecture

    in Windows 10 Installation and Upgrade
    Upgrade Architecture: I am currently running Win10 x86 on a PC with x64 processor. I have an x64 ISO but it won't run on my x86 and my BIOS doesn't recognise it as a boot device. Any Ideas? https://answers.microsoft.com/en-us/windows/forum/all/upgrade-architecture/7307f532-e445-4127-bf91-960b5cbbad06
  7. folder architecture

    in Windows 10 Network and Sharing
    folder architecture: Having moved up from Win 7, I'm trying, unsuccessfully, to understand the consequence of creating folders in C:, This PC, User folders, Libraries, OneDrive, I just can't get my head around the Win 10 architecture and logic. I bought Windows 10 - "The Missing Manual". Do I...
  8. OneDrive Architecture

    in Windows 10 Performance & Maintenance
    OneDrive Architecture: I'm stumped by OneDrive's performance on my wife's Surface Pro. Is OneDrive only in the cloud or does the term "OneDrive" also apply to a folder or virtual folder on the S Pro's hard drive? When we login on my wife's OneDrive account at onedrive.live.com, there are no...
  9. Cant install 64bit only allows 32bit

    in Windows 10 Installation and Upgrade
    Cant install 64bit only allows 32bit: I have a slight issue. I have downloaded Windows 10 and created multiple USB's using Rufus/Windows7 USB Tool/Even The Win 10 Creation tool, however everything time I try to install using UEFI the USB drive is never detected therefore it can't boot. I change it to legacy...
  10. Upgrade different architecture?

    in Windows 10 Installation and Upgrade
    Upgrade different architecture?: Hi I am wondering if you can upgrade win 8.1 32 bit to win 10 64 bit without losing applications, anyone tried it? Tim 4418