Forum Discussion
GuidoRacamato
Jun 25, 2024Copper Contributor
Error copying profile (0x00000001): Incorrect function.
The latest version of FSLogix is experiencing problems with the command: frx copy-profile
C:\Program Files\FSLogix\Apps>frx copy-profile -filename d:\temp\Profile_test.vhdx -username test -size-mbs=30720 -dynamic=1 label=profile-test-verbose
User test" SID is "S-1-5-21-2971068368-244597684-1576390238-2601"
Volume Label: profile-test
Session count: 6
Found user:
Found user:
Found user: test
Found user:
Found user:
Found user:
VHD not found. Creating...
Create success. Attaching...
Attach success. Getting physical path...
Get physical path success. Opening device...
Open device success. Initializing disk...
Initialize disk success. Getting volume name...
.
Formatting volume: \\?\Volume{5bc41fa6-5d2b-4389-99de-f4306343069c}\
Format success
GetSecurityDescriptor success
GetDACL success
Set security success
Copying profile for user S-1-5-21-2971068368-244597684-1576390238-2601 to volume \\?\Volume{5bc41fa6-5d2b-4389-99de-f4306343069c}\
Looking for Profile Path in registry
CopyProfileToVolume SID: S-1-5-21-2971068368-244597684-1576390238-2601 Volume: \\?\Volume{5bc41fa6-5d2b-4389-99de-f4306343069c}\ profileImagePath: C:\Users\test
Exporting registry information
Export Profile registry data error: 0x00000001
Error copying profile (0x00000001): Incorrect function.
After downgrading to version 2.9.8612.60056, I was able to migrate the local profile. However, the command needed to be run twice because the first attempt resulted in an error:
Export Profile registry data error: 0x00000002
Error copying profile (0x00000002): The system cannot find the file specified.
8 Replies
Sort By
- TechnicalReboundBlightCopper Contributor
Still a problem in April 2025 after the update on 4/7/25.
- BorschCopper Contributor
The issue still exists. Today, I installed the newest version 25.02.
The frx.exe version is 3.25.202.4223 from 02.02.2025.
My question is: If I use the old version, for example, 2.9.8440.42104 from 09.02.2023, is that okay, or will I be missing something in the profiles?
- thejohnpeacheyCopper ContributorThanks Guido. I was also suffering this problem. After further investigation what happens is that on the first run a folder is created in the users localappdata\FSLogix\ profile containing a registry file. It looks like there may be some race condition for the exporting of this file. On the second run, with this file present, the file is successfuly exported and a .bak file is also created containing the same file size. If you change the contents of the registry file in LocalAppdata\FSLogix,, it recreates the original registry file and leaves a backup of the wrong file size. I don't know what is exported. Thanks for being part of the community 🙂
- Gonzalo_Reyna
Microsoft
GuidoRacamato thanks for reporting this issue. Can you please tell us more about your AV/Security solution in place? Do you have the AV settings as per Prerequisites for FSLogix - FSLogix | Microsoft Learn?
- GuidoRacamatoCopper ContributorI've confirmed that there's no AV (antivirus) in place. I've also managed to reproduce this issue in at least three different environments.
- Gonzalo_Reyna
Microsoft
Thanks for reporting this. We will investigate this internally.