Azure WVD I am unable to convert userprofile using frx.exe

%3CLINGO-SUB%20id%3D%22lingo-sub-1354864%22%20slang%3D%22en-US%22%3EAzure%20WVD%20I%20am%20unable%20to%20convert%20userprofile%20using%20frx.exe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1354864%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20doing%20a%20migration%20of%20an%20on-premises%20user's%20profile%20to%20VHD%20using%20FRX.exe%20command%20line%20but%20constantly%20getting%20an%20error%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22Exit%20code%209%3A%20The%20system%20cannot%20write%20to%20the%20specified%20device%22%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20checked%20the%20code%20explanation%20is%20%22%3CSPAN%3EThere%20was%20an%20error%20creating%20the%20VHD%2FX%20file.%22%20but%20nothing%20else%20is%20mentioned!%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Ffslogix%2Ffslogix-error-codes-reference%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Ffslogix%2Ffslogix-error-codes-reference%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20user%20has%20administrative%20writes%20to%20the%20disk.%20so%20I%20am%20lost%20what%20is%20wrong%20in%20here%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22frx.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F188377i7A2C8DF850A064D7%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22frx.jpg%22%20alt%3D%22frx.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1354864%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Efslogix%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUserProfile%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWVD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1355033%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20WVD%20I%20am%20unable%20to%20convert%20userprofile%20using%20frx.exe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1355033%22%20slang%3D%22en-US%22%3E%3CP%3E1.%20Find%20the%20location%20and%20name%20of%20the%20user%20you%20want%20to%20move%3C%2FP%3E%3CP%3EThis%20example%20uses%20a%20current%20user%20named%3A%20Bob%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Open%20an%20Administrator%20command%20prompt%3C%2FP%3E%3CP%3ENavigate%20into%20the%20FSLogix%20Apps%20directory%3C%2FP%3E%3CP%3Ecd%20C%3A%5CProgram%20Files%5CFSLogix%5CApps%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPull%20up%20the%20copy-profile%20command%3C%2FP%3E%3CP%3Efrx%20copy-profile%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3.%20Build%20your%20command%20string%3C%2FP%3E%3CP%3EChoose%20the%20parameters%20that%20apply%20to%20your%20situation%2C%20in%20this%20example%20we%20are%20going%20to%3A%3C%2FP%3E%3CP%3EGive%20the%20output%20path%20for%20our%20vhd(x)%20-filename%20C%3A%5CProfile.vhd(x)%3CBR%20%2F%3EEnter%20in%20which%20user%20to%20copy%20-username%20Domain%5CUsername%3CBR%20%2F%3ESpecify%20the%20size%20of%20the%20disk%20with%20-size-mbs%2010000%3CBR%20%2F%3EMake%20the%20disk%20grow%20as%20needed%20-dynamic%201%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E4.%20Perform%20the%20conversion%3C%2FP%3E%3CP%3Efrx%20copy-profile%20-filename%20C%3A%5CUsers%5CBob.vhdx%20-username%20Bob%20-dynamic%201%20-size-mbs%2010000%3C%2FP%3E%3CP%3EAfter%20the%20process%20in%20finished%2C%20a%20clone%20of%20your%20user%20Bob%20account%20should%20be%20in%20a%20container%20under%20C%3A%5CUsers%5CBob.vhdx%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETroubleshooting%3C%2FP%3E%3CP%3EIt%20is%20possible%20that%20you%20may%20run%20into%20some%20errors%20when%20using%20and%20creating%20Profile%20Containers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E(0x00000001D)%3A%20the%20system%20cannot%20write%20to%20the%20specified%20device.%3C%2FP%3E%3CP%3EThis%20problem%20arises%20when%20you%20are%20attempting%20to%20migrate%20an%20existing%20user%20account%20to%20a%20profile%20container%20(vhd).%3C%2FP%3E%3CP%3EFix%3A%3C%2FP%3E%3CP%3EDelete%20the%20following%20directory%20and%20all%20its%20contents.%20Re-running%20your%20command%20should%20result%20in%20a%20success.%3C%2FP%3E%3CP%3E%25Temp%25%5CFrxMount%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E(0x00000005)%3A%20Access%20denied%3C%2FP%3E%3CP%3EThis%20problem%20arises%20when%20you%20are%20attempting%20to%20migrate%20an%20existing%20user%20account%20without%20administrator%20permissions%3C%2FP%3E%3CP%3EFix%3A%3C%2FP%3E%3CP%3EYou%20have%20to%20run%20the%20command%20using%20an%20administrator%20command%20prompt.%3C%2FP%3E%3CP%3EIf%20you%20still%20have%20issue%20you%20can%20visit%20the%20below%20link%20for%20more%20help.%3C%2FP%3E%3CP%3ELink%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.apps4rent.com%2Fwindows-virtual-desktop-azure%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.apps4rent.com%2Fwindows-virtual-desktop-azure%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1355475%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20WVD%20I%20am%20unable%20to%20convert%20userprofile%20using%20frx.exe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1355475%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Lewis%2C%20I%20already%20have%20used%20this%20command%20multiple%20times%20but%20still%20keep%20on%20getting%20the%20same%20error.%20In%20the%20path%20you%20mentioned%20I%20couldn't%20find%20any%20trace%20of%20a%20FrxMount%20file%20or%20folder.%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20User%20I%20am%20using%20is%20a%20local%20admin%20so%20not%20a%20permission%20issue.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F493704%22%20target%3D%22_blank%22%3E%40Lewis-H%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1448143%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20WVD%20I%20am%20unable%20to%20convert%20userprofile%20using%20frx.exe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1448143%22%20slang%3D%22en-US%22%3E%3CP%3Edid%20you%20have%20any%20luck%20fixing%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1448322%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20WVD%20I%20am%20unable%20to%20convert%20userprofile%20using%20frx.exe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1448322%22%20slang%3D%22en-US%22%3E%3CP%3ENot%20really.%20nothing%20worked%20with%20FSLogix%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F692479%22%20target%3D%22_blank%22%3E%40SQLTemp%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1688246%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20WVD%20I%20am%20unable%20to%20convert%20userprofile%20using%20frx.exe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1688246%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F26060%22%20target%3D%22_blank%22%3E%40Mohammed%20Hamada%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20having%20same%20issues%20with%20Win10%20build%201903%20and%201909%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20done%20a%20lot%20of%20research%20on%20this.%20Still%20having%20same%20issues.%20two%20out%20of%208%20profiles%20have%20migrated.%20Most%20have%20not.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20check%20robocopy%20logging%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1688318%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20WVD%20I%20am%20unable%20to%20convert%20userprofile%20using%20frx.exe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1688318%22%20slang%3D%22en-US%22%3E%3CP%3EFound%20the%20issue%20by%20turning%20on%20robocopy%20logging%20via%20registry%20entry%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERegistry%20Key%3A%20HKLM%5CSOFTWARE%5CFSLogix%5CLogging%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3ERobocopyLogPath%3C%2FTD%3E%3CTD%3EREG_SZ%3C%2FTD%3E%3CTD%3ESpecifies%20a%20log%20file%20name%20and%20path%20where%20the%20output%20of%20robocopy%20calls%20(for%20example%2C%20during%20mirroring%20of%20data%20in%20or%20out%20of%20a%20VHD)%20will%20be%20logged.%20If%20the%20value%20is%20non-existent%2C%20then%20the%20robocopy%20results%20are%20not%20logged%20at%20all.%20This%20setting%20is%20recommended%20to%20be%20used%20only%20for%20troubleshooting.%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20set%20a%20reg%20key%20above%20to%20a%20basic%20path%20string%20of%20C%3A%5Ctemp%5Cfslogixrobocopy.txt%3C%2FP%3E%3CP%3EThis%20really%20helped%20isolate%20the%20issue%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEnded%20up%20that%20robocopy%20was%20erroring%20out%20on%20a%20file%20in%3A%20C%3A%5CUsers%5Cusername%5CAppData%5CLocal%5CPackages%5CMicrosoft.MicrosoftOfficeHub_8wekyb3d8bbwe%5CLocalCache%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20deleted%20the%20offending%20file%20in%20the%20localcache%20of%20that%20app%20and%20was%20successful%20in%20the%20copy-profile%20after%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2165697%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20WVD%20I%20am%20unable%20to%20convert%20userprofile%20using%20frx.exe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2165697%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F800087%22%20target%3D%22_blank%22%3E%40crickertcit%3C%2FA%3E%26nbsp%3BMASSIVE%20upvote%20on%20this%20logging%20suggestion%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20my%20instance%20it%20was%20the%20windows%20Search%20on%20Server%202019%20RD%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20well%20documented%20shenanigans%20that%20is%20Windows%202019%20search%2C%20vs%20Outlook%20search%2C%20vs%20Exchange....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUser%20had%20a%20search%20database%20in%20%25appdata%25%5CMicrosoft%5CSearch%5CData%5CApplications%5C%3CUSER%20sid%3D%22%22%3E%20folder%3C%2FUSER%3E%3C%2FP%3E%3CP%3EThe%20issue%20was%20Windows%20Search%20was%20holding%20onto%20the%20files%20with%20a%20vice%20like%20grip.%3C%2FP%3E%3CP%3ERestarted%20Windows%20Search%20Service%20on%20RD%20server%2C%20deleted%20the%20contents%20of%20the%20folder%20and%20the%20profile%20migrated%20successfully!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Dear all,

 

I am doing a migration of an on-premises user's profile to VHD using FRX.exe command line but constantly getting an error

 

"Exit code 9: The system cannot write to the specified device" 

 

I checked the code explanation is "There was an error creating the VHD/X file." but nothing else is mentioned! 

https://docs.microsoft.com/en-us/fslogix/fslogix-error-codes-reference

 

The user has administrative writes to the disk. so I am lost what is wrong in here? 

 

frx.jpg

7 Replies

1. Find the location and name of the user you want to move

This example uses a current user named: Bob

 

 

2. Open an Administrator command prompt

Navigate into the FSLogix Apps directory

cd C:\Program Files\FSLogix\Apps

 

Pull up the copy-profile command

frx copy-profile

 

 

 

3. Build your command string

Choose the parameters that apply to your situation, in this example we are going to:

Give the output path for our vhd(x) -filename C:\Profile.vhd(x)
Enter in which user to copy -username Domain\Username
Specify the size of the disk with -size-mbs 10000
Make the disk grow as needed -dynamic 1

 

4. Perform the conversion

frx copy-profile -filename C:\Users\Bob.vhdx -username Bob -dynamic 1 -size-mbs 10000

After the process in finished, a clone of your user Bob account should be in a container under C:\Users\Bob.vhdx

 

 

Troubleshooting

It is possible that you may run into some errors when using and creating Profile Containers.

 

(0x00000001D): the system cannot write to the specified device.

This problem arises when you are attempting to migrate an existing user account to a profile container (vhd).

Fix:

Delete the following directory and all its contents. Re-running your command should result in a success.

%Temp%\FrxMount

 

(0x00000005): Access denied

This problem arises when you are attempting to migrate an existing user account without administrator permissions

Fix:

You have to run the command using an administrator command prompt.

If you still have issue you can visit the below link for more help.

Link: https://www.apps4rent.com/windows-virtual-desktop-azure

Hi Lewis, I already have used this command multiple times but still keep on getting the same error. In the path you mentioned I couldn't find any trace of a FrxMount file or folder. 

the User I am using is a local admin so not a permission issue. @Lewis-H 

did you have any luck fixing this?

Not really. nothing worked with FSLogix @SQLTemp 

@Mohammed Hamada 

 

I'm having same issues with Win10 build 1903 and 1909

 

I've done a lot of research on this. Still having same issues. two out of 8 profiles have migrated. Most have not.

 

Is there a way to check robocopy logging?

 

 

Found the issue by turning on robocopy logging via registry entry

 

Registry Key: HKLM\SOFTWARE\FSLogix\Logging

 

RobocopyLogPathREG_SZSpecifies a log file name and path where the output of robocopy calls (for example, during mirroring of data in or out of a VHD) will be logged. If the value is non-existent, then the robocopy results are not logged at all. This setting is recommended to be used only for troubleshooting.
   

 

I set a reg key above to a basic path string of C:\temp\fslogixrobocopy.txt

This really helped isolate the issue

 

Ended up that robocopy was erroring out on a file in: C:\Users\username\AppData\Local\Packages\Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe\LocalCache

 

I deleted the offending file in the localcache of that app and was successful in the copy-profile after that.

 

 

@crickertcit MASSIVE upvote on this logging suggestion

 

In my instance it was the windows Search on Server 2019 RD

 

The well documented shenanigans that is Windows 2019 search, vs Outlook search, vs Exchange....

 

User had a search database in %appdata%\Microsoft\Search\Data\Applications\<User SID> folder

The issue was Windows Search was holding onto the files with a vice like grip.

Restarted Windows Search Service on RD server, deleted the contents of the folder and the profile migrated successfully!