SOLVED

Convert UPD to FSLogix container

%3CLINGO-SUB%20id%3D%22lingo-sub-927214%22%20slang%3D%22en-US%22%3EConvert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927214%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20wanting%20to%20move%20our%20users%20from%20RDS%20to%20WVD%20without%20losing%20or%20redoing%20the%20the%20profiles.%20Is%20there%20a%20way%20to%20convert%20the%20traditional%20RDS%20UPD%20profile%20(VHD)%20to%20a%20FSLogix%20profile%20container%20(Would%20like%20to%20make%20it%20a%20VHDX%2C%20if%20that%20is%20not%20possible%20then%20VHD%20to%20VHD)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962756%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962756%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F173561%22%20target%3D%22_blank%22%3E%40Roger%20Critz%3C%2FA%3E%26nbsp%3Bwe%20will%20be%20starting%20a%20private%20preview%20for%20a%20PowerShell%20script%20to%20accomplish%20this.%26nbsp%3B%20I%20will%20post%20the%20specifics%20here%20when%20available.%26nbsp%3B%20The%20Private%20Preview%20will%20be%20for%20those%20moving%20from%20on-prem%20to%20WVD%2C%20which%20is%20the%20use%20case%20you%20describe.%26nbsp%3B%20The%20current%20plan%20is%20for%20this%20PowerShell%20to%20ultimately%20move%20to%20an%20open%20source%20repo%20to%20be%20extended%20by%20the%20community.%26nbsp%3B%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-962915%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-962915%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314266%22%20target%3D%22_blank%22%3E%40Doug_Coombs%3C%2FA%3EI%20would%20also%20like%20that%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-973070%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-973070%22%20slang%3D%22en-US%22%3EGreat%20to%20hear!%20I'm%20interested%20in%20previewing%2Ftesting%20this%20out%20as%20well.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-994824%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-994824%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314266%22%20target%3D%22_blank%22%3E%40Doug_Coombs%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20love%20to%20use%20this%20also%3C%2FP%3E%3CP%3EDoes%20the%20script%20also%20work%20for%20other%20UPD%20connectors%20like%20the%20once%20created%20by%20Parallels%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1000548%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1000548%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%20Would%20also%20like%20to%20see%20a%20MS%20UPD%20to%20FSLogix%20container%20script%20or%20process%20please.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F173561%22%20target%3D%22_blank%22%3E%40Roger%20Critz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1008680%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1008680%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314266%22%20target%3D%22_blank%22%3E%40Doug_Coombs%3C%2FA%3E%26nbsp%3Bcan%20I%20have%20preview%20please%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1017524%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1017524%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F454627%22%20target%3D%22_blank%22%3E%40adamsi175%3C%2FA%3E%26nbsp%3B%20Yes%20please..%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1018788%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1018788%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F173561%22%20target%3D%22_blank%22%3E%40Roger%20Critz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOK%20so%20here%20is%20what%20I%20have%20so%20far.%20It's%20actually%20functional%20and%20I%20think%20anyone%20can%20run%20it%20in%20their%20environment.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20will%20get%20the%20list%20of%20files%20for%20X%3A%5CPath%5CUVHD-%3CSID%3E.vhdx%20and%20then%20give%20you%20X%3A%5CPath%5CSAM_SID%5CProfile_SAM.vhdx%3C%2FSID%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20takes%20about%2011%20seconds%20per%20VHDX%20file.%20There's%20a%205-second%20delay%20on%20the%20mount%20and%20dismount%20step%20just%20to%20make%20sure%20that%20process%20has%20completed%20before%20moving%20onto%20the%20next%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere's%20one%20problem%20in%20my%20environment%20but%20it's%20not%20the%20code%20itself.%20About%201%20in%2020%20source%20VHDX%20files%20fail%20to%20mount.%20e.g.%20Mount-Diskimage%20-ImagePath%20X%3A%5CPath%5Cto%5Cthe%5Cfile.vhdx.%20The%20error%20is%200x80070005.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20tried%20on%20multiple%20servers%20and%20accounts.%20It's%20not%20NTFS%20permissions%20or%20lack%20of%20admin%20rights.%20I%20haven't%20found%20the%20cause%20yet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20comment%20out%20the%20part%20where%20it%20does%20any%20actual%20changes%20and%20leave%20only%20the%20mount%20and%20dismount%20sections%20then%20you%20can%20see%20if%20you're%20okay%20to%20proceed%20in%20your%20environment.%20If%20anyone%20has%20any%20idea%20why%20some%20files%20fail%20to%20mount%20I'd%20like%20to%20hear.%20That's%20the%20reason%20I%20am%20sharing%20this%20now%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEdit%3A%20Just%20as%20follow%20up...%20if%20anyone%20wants%20to%20quickly%20see%20if%20they'll%20have%20Mount-DiskImage%20issues%20then%20you%20can%20use%20the%20below.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%24tests%20%3D%20Get-ChildItem%20%22X%3A%5CPath%22%20-File%20-Filter%20UVHD-S*.vhdx%20%7C%20Sort%20Name%3C%2FP%3E%3CP%3ENew-Item%20-Path%20%22X%3A%5CPath%22%20-ItemType%20File%20-Name%20'aaaa.txt'%3C%2FP%3E%3CP%3EForEach%20(%24test%20in%20%24tests)%7B%3CBR%20%2F%3EWrite-Host%20%22This%20is%20%22%24test.FullName%20-ForegroundColor%20Green%3CBR%20%2F%3EMount-DiskImage%20-ImagePath%20%24test.FullName%20-ErrorAction%20SilentlyContinue%20-ErrorVariable%20MountError%20%7C%20Out-Null%3B%3CBR%20%2F%3EIf%20(%24MountError)%7B%3CBR%20%2F%3EWrite-Host%20%22Failed%20to%20mount%22%20%24test.FullName%20-ForegroundColor%20Yellow%3CBR%20%2F%3EAdd-Content%20-Path%20%22X%3A%5CPath%5Caaaa.txt%22%20-Value%20%24test.FullName%3CBR%20%2F%3E%7D%3CBR%20%2F%3EDismount-DiskImage%20-ImagePath%20%24test.FullName%20%7C%20Out-Null%3CBR%20%2F%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%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-1014490%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1014490%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20looking%20for%20this%20script%20as%20well!%20Would%20you%20share%20it%20when%20it's%20available%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1052896%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1052896%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20able%20to%20convert%20my%20UPD's%20but%20when%20i%20try%20to%20login%20using%20FSLogix%20the%20login%20doesnt%20attach%20to%20the%20new%20VHDX%20.%20Is%20there%20something%20you%20need%20to%20do%20after%20to%20get%20it%20to%20attach%20properly%3F%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F454627%22%20target%3D%22_blank%22%3E%40adamsi175%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1053001%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1053001%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F479197%22%20target%3D%22_blank%22%3E%40jerrywilkinson%3C%2FA%3E%26nbsp%3BIf%20FSLogix%20is%20configured%20correctly%20(enabled%2C%20set%20properly%20for%20your%20format%20(VHD%2FVHDX)%20and%20not%20using%20the%20profile%2C%20then%20it%20would%20be%20a%20matter%20of%20standard%20FSLogix%20trouble%20shooting%20to%20determine%20the%20issue.%26nbsp%3B%20Trouble%20shooting%20steps%20can%20be%20found%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Ffslogix%2Ffslogix-trouble-shooting-ht%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Ffslogix%2Ffslogix-trouble-shooting-ht.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdditional%20information%20around%20error%20codes%2C%20etc.%20are%20also%20available%20in%20the%20reference%20section.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1053030%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1053030%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314266%22%20target%3D%22_blank%22%3E%40Doug_Coombs%3C%2FA%3E%26nbsp%3Byes%20ive%20gone%20through%20all%20of%20that%2C%20and%20our%20FSLogix%20settings%20are%20correct.%20the%20errors%20im%20seeing%20are%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVirtualDiskAPI%3A%3ACreateFormattedDisk%20failed%20to%20create%20vhd(x)%3A%3C%2FP%3E%3CP%3ELoadProfile%20failed.%20User%3A%20ndtest.%20SID%3A%20S-1-5-21-4174114073-886831968-143637270-1216.%20(A%20device%20attached%20to%20the%20system%20is%20not%20functioning.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20think%20there%20is%20an%20issue%20in%20the%20conversion%20process%2C%20it%20creates%20the%20new%20VHDX%20but%20if%20i%20try%20to%20mount%20it%20with%20the%20FSLogix%20Mount%20tool%20i%20get%20errors%20related%20to%20permissions.%20but%20ive%20compared%20the%20permissions%20to%20a%20new%20FSLogix%20container%20VHDX%20and%20they%20are%20the%20same.%20So%20just%20scratching%20my%20head%20on%20the%20root%20issue%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1053066%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1053066%22%20slang%3D%22en-US%22%3E%3CP%3ETo%20sign%20up%20for%20the%20private%20preview%20of%20the%20UPD%20Migration%20script%20please%20visit%20this%20site%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fforms.office.com%2FPages%2FResponsePage.aspx%3Fid%3Dv4j5cvGGr0GRqy180BHbR3HZFwpyCxVCngXplJaL78tUOUE0NEtBM0NDTU5DTTY0Qzg0NkRHWE85Si4u%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fforms.office.com%2FPages%2FResponsePage.aspx%3Fid%3Dv4j5cvGGr0GRqy180BHbR3HZFwpyCxVCngXplJaL78tUOUE0NEtBM0NDTU5DTTY0Qzg0NkRHWE85Si4u%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20an%20unsupported%20private%20preview%2C%20the%20scripts%20are%20provided%20as-is.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1053056%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1053056%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F479197%22%20target%3D%22_blank%22%3E%40jerrywilkinson%3C%2FA%3E%26nbsp%3BSorry%20if%20these%20are%20remedial%20questions%2C%20but%20I%20need%20to%20understand%20the%20scenario.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1-%20I%20assume%20that%20the%20user%20can%20manually%20mount%20the%20VHDX%2C%20from%20the%20same%20machine%20as%20is%20being%20used%20for%20FSLogix%2C%20and%20traverse%3F%3C%2FP%3E%0A%3CP%3E2-%20What%20is%20the%20result%20of%20the%20error%2C%20a%20new%20VHDX%2C%20temp%20profile%2C%20local%20profile%2C%20etc%3F%3C%2FP%3E%0A%3CP%3E3-%20What%20process%20did%20you%20use%20to%20convert%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1053180%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1053180%22%20slang%3D%22en-US%22%3E%3CP%3Ei%20was%20using%20the%20script%20that's%20listed%20in%20this%20forum%20post%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eive%20signed%20up%20for%20the%20private%20preview%2C%20ill%20wait%20for%20that%20before%20i%20move%20ahead.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20reply%20!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1055024%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1055024%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20script%20I%20posted%20uses%202%20settings%20that%20are%20not%20the%20default%20for%20FSLogix.%20Perhaps%20that%20explains%20your%20issue%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20It%20uses%20a%20.vhdx%20suffix.%20The%20default%20that%20FSLogix%20tries%20to%20load%20on%20an%20RDSH%20is%20.vhd%3C%2FP%3E%3CP%3E2)%20It%20creates%20the%20folders%20using%20SAM_SID%20rather%20than%20the%20default%20of%20SID_SAM%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20script%20change%20it%20to%20.vhd%20and%20SID_SAM%20if%20you%20want%20to%20use%20the%20defaults%20that%20are%20configured%20with%20a%20basic%20install%20of%20the%20FSLogix%20app%20in%20an%20RDSH.%20If%20you%20want%20to%20use%20the%20defaults%20of%20.vhd%20and%20sid_sam%20then%20the%20parts%20you%20want%20are%20on%20lines%20113%20and%20222%20of%20the%20attached%20file.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20requirements%20in%20a%20.vhd*%20file%20itself%20for%20FSLogix%20are%202%20things%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20Files%20are%20in%20%22%5CProfile%22%20rather%20than%20the%20root%20of%20the%20UPD.%3CBR%20%2F%3E2)%20A%20few%20registry%20keys%20for%20FSLogix.%20The%20script%20has%20code%20there%20to%20create%20the%20info%20and%20add%20to%20their%20registry%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20is%20a%20more%20recent%20update%20that%20has%20an%20extra%20bit%20to%20not%20move%20files%20for%20a%20profile%20that%20fails%20to%20mount.%20The%20process%20to%20move%20and%20rename%20the%20UPD%20file%20itself%20is%20unmodified.%20I've%20used%20it%20to%20convert%20500%2B%20UPD%20.vhdx%20files%20from%20D%3A%5CUPD%20to%20D%3A%5CFSLogix%5C%3CSAM%3E_%3CSID%3E%5C.%3C%2FSID%3E%3C%2FSAM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F479197%22%20target%3D%22_blank%22%3E%40jerrywilkinson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1055939%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1055939%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20reply%2C%20originally%20i%20did%20change%20the%20defaults%20in%20the%20script%20to%20match%20my%20FSlogix%20GPO%20settings.%20It%20creates%20the%20new%20VHDX%20without%20any%20issues%20but%20when%20i%20try%20to%20login%20with%20the%20test%20user%20it%20doesnt%20attach%20the%20FSLogix%20VHDX%20%2C%20and%20i%20get%20the%20errors%20in%20the%20fslogix%20log%26nbsp%3B%3C%2FP%3E%3CP%3EVirtualDiskAPI%3A%3ACreateFormattedDisk%20failed%20to%20create%20vhd(x)%3A%26nbsp%3B%3C%2FP%3E%3CP%3E(The%20file%20exists.)%3C%2FP%3E%3CP%3EStatus%20set%20to%209%3A%20Cannot%20create%20virtual%20disk%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F454627%22%20target%3D%22_blank%22%3E%40adamsi175%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1056445%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1056445%22%20slang%3D%22en-US%22%3E%3CP%3E%22(The%20file%20exists.)%22%20as%20in%20the%20file%20already%20exists%20that%20it%20would%20want%20to%20create%3F%20Can%20it%20not%20read%20it%20due%20to%20permissions%3F%20The%20computer%20AD%20account%20presumably%20has%20permissions%20to%20the%20share%20and%20parent%20folder.%20After%20running%20the%20conversion%20script%20if%20you%20then%20rename%20the%20file%20slightly%20and%20try%20to%20log%20in%20do%20you%20end%20up%20with%20a%20new%20file%20based%20on%20the%20template%20VHD%20or%20the%20DefaultUser%20for%20the%20RDSH%20and%20can%20use%20that%20file%3F%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F479197%22%20target%3D%22_blank%22%3E%40jerrywilkinson%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1060700%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1060700%22%20slang%3D%22en-US%22%3E%3CP%3Eive%20checked%20permissions%2C%20and%20everything%20matches%20to%20when%20a%20FSLogix%20VHDX%20gets%20created.%20ive%20even%20tried%20logging%20in%20so%20a%20FSLogix%20VHDX%20gets%20created%2C%20then%20renaming%20the%20converted%20one%20to%20match%20the%20newly%20created%20one%20and%20the%20same%20issue%20happens.%20FSLogix%20doesnt%20mount%20the%20VHDX%20it%20just%20creates%20a%20local%20user%20profile%20on%20the%20RDSH.%20im%20still%20digging%20into%20the%20issue%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F454627%22%20target%3D%22_blank%22%3E%40adamsi175%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1142673%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1142673%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314266%22%20target%3D%22_blank%22%3E%40Doug_Coombs%3C%2FA%3Ecan%20you%20please%20help%20me%20out%20with%20mounting%20of%20the%20vhd%20file.%20I%20have%20user%20profiles%20created%20in%20azure%20files%20and%20I%20have%20mapped%20the%20file%20share%20onto%20my%20session-host.%20I%20am%20the%20domainadmin%2FlocalAdmin%20so%20when%20I%20try%20to%20mount%20the%20vhd%20file%20I%20am%20not%20able%20to%20do%20so%20it%20is%20throwing%20me%20the%20following%20error%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20562px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168279i5FE9F0DAF54E01B1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22mount.png%22%20title%3D%22mount.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1144229%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1144229%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F479197%22%20target%3D%22_blank%22%3E%40jerrywilkinson%3C%2FA%3E%26nbsp%3Bthe%20log%20file%20will%20show%20why%20it%20didn't%20attach.%20%25programdata%25%5CFSLogix%5Clogs%5CProfiles%20is%20where%20to%20look.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1144236%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1144236%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F455264%22%20target%3D%22_blank%22%3E%40sarahpotrick2573%3C%2FA%3E%26nbsp%3Bmaybe%20try%20attaching%20via%20Powershell%20and%20see%20if%20you%20can%20get%20an%20error%20code.%20Could%20be%20a%20lot%20of%20things.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1152706%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1152706%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20are%20lost%20files%20that%20are%20not%20found.%20I%20am%20not%20able%20to%20understand%20the%20exact%20cause%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F283720%22%20target%3D%22_blank%22%3E%40racook%3C%2FA%3E%3C%2FP%3E%3CP%3EIs%20it%20possible%20for%20you%20to%20come%20on%20call%2C%20so%20that%20we%20can%20troubleshoot.%20It%20would%20be%20great%20help%20if%20you%20can%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1225371%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1225371%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F314266%22%20target%3D%22_blank%22%3E%40Doug_Coombs%3C%2FA%3E%26nbsp%3BThe%20link%20you%20provided%20doesn't%20work%20anymore.%20Do%20you%20know%20how%20I%20can%20get%20the%20PS-script%2Fmodules%3F%20Are%20they%20available%20anywhere%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1268340%22%20slang%3D%22en-US%22%3ERe%3A%20Convert%20UPD%20to%20FSLogix%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1268340%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20also%20very%20keen%20to%20be%20in%20the%20preview.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20want%20to%20finally%20push%20OneDrive%20client%20to%20our%20RDSH%20users%2C%20but%20when%20deploying%20the%20most%20recent%20version%2C%20we%20found%20they%20now%20don't%20support%20junction%20points%2C%20and%20therefore%20UPDs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20write%20something%20myself%2C%20but%20if%20there%20is%20a%20proper%20preview%20available%2C%20I'd%20love%20to%20try%20it%20out.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EJames%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

We are wanting to move our users from RDS to WVD without losing or redoing the the profiles. Is there a way to convert the traditional RDS UPD profile (VHD) to a FSLogix profile container (Would like to make it a VHDX, if that is not possible then VHD to VHD)?

 

Thank you in advance..

25 Replies
Highlighted
Best Response confirmed by Eva Seydl (Microsoft)
Solution

@Roger Critz we will be starting a private preview for a PowerShell script to accomplish this.  I will post the specifics here when available.  The Private Preview will be for those moving from on-prem to WVD, which is the use case you describe.  The current plan is for this PowerShell to ultimately move to an open source repo to be extended by the community.  Thanks!

Highlighted

@Doug_CoombsI would also like that

Highlighted
Great to hear! I'm interested in previewing/testing this out as well.
Highlighted

@Doug_Coombs 

I would love to use this also

Does the script also work for other UPD connectors like the once created by Parallels?

Highlighted

Hi. Would also like to see a MS UPD to FSLogix container script or process please.

@Roger Critz 

Highlighted

@Doug_Coombs can I have preview please?

Highlighted

We are looking for this script as well! Would you share it when it's available? 

Highlighted

@adamsi175  Yes please.. 

Highlighted

@Roger Critz 

 

OK so here is what I have so far. It's actually functional and I think anyone can run it in their environment.

 

It will get the list of files for X:\Path\UVHD-<SID>.vhdx and then give you X:\Path\SAM_SID\Profile_SAM.vhdx

 

It takes about 11 seconds per VHDX file. There's a 5-second delay on the mount and dismount step just to make sure that process has completed before moving onto the next file.

 

There's one problem in my environment but it's not the code itself. About 1 in 20 source VHDX files fail to mount. e.g. Mount-Diskimage -ImagePath X:\Path\to\the\file.vhdx. The error is 0x80070005.

 

I've tried on multiple servers and accounts. It's not NTFS permissions or lack of admin rights. I haven't found the cause yet.

 

If you comment out the part where it does any actual changes and leave only the mount and dismount sections then you can see if you're okay to proceed in your environment. If anyone has any idea why some files fail to mount I'd like to hear. That's the reason I am sharing this now :)

 

Edit: Just as follow up... if anyone wants to quickly see if they'll have Mount-DiskImage issues then you can use the below.

 

$tests = Get-ChildItem "X:\Path" -File -Filter UVHD-S*.vhdx | Sort Name

New-Item -Path "X:\Path" -ItemType File -Name 'aaaa.txt'

ForEach ($test in $tests){
Write-Host "This is "$test.FullName -ForegroundColor Green
Mount-DiskImage -ImagePath $test.FullName -ErrorAction SilentlyContinue -ErrorVariable MountError | Out-Null;
If ($MountError){
Write-Host "Failed to mount" $test.FullName -ForegroundColor Yellow
Add-Content -Path "X:\Path\aaaa.txt" -Value $test.FullName
}
Dismount-DiskImage -ImagePath $test.FullName | Out-Null
}

 

 

 

Highlighted

I was able to convert my UPD's but when i try to login using FSLogix the login doesnt attach to the new VHDX . Is there something you need to do after to get it to attach properly? @adamsi175 

Highlighted

@jerrywilkinson If FSLogix is configured correctly (enabled, set properly for your format (VHD/VHDX) and not using the profile, then it would be a matter of standard FSLogix trouble shooting to determine the issue.  Trouble shooting steps can be found here: https://docs.microsoft.com/fslogix/fslogix-trouble-shooting-ht.

 

Additional information around error codes, etc. are also available in the reference section.

Highlighted

@Doug_Coombs yes ive gone through all of that, and our FSLogix settings are correct. the errors im seeing are:

 

VirtualDiskAPI::CreateFormattedDisk failed to create vhd(x):

LoadProfile failed. User: ndtest. SID: S-1-5-21-4174114073-886831968-143637270-1216. (A device attached to the system is not functioning.)

 

i think there is an issue in the conversion process, it creates the new VHDX but if i try to mount it with the FSLogix Mount tool i get errors related to permissions. but ive compared the permissions to a new FSLogix container VHDX and they are the same. So just scratching my head on the root issue 

Highlighted

@jerrywilkinson Sorry if these are remedial questions, but I need to understand the scenario.

 

1- I assume that the user can manually mount the VHDX, from the same machine as is being used for FSLogix, and traverse?

2- What is the result of the error, a new VHDX, temp profile, local profile, etc?

3- What process did you use to convert?

 

Thanks!

Highlighted

To sign up for the private preview of the UPD Migration script please visit this site: https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR3HZFwpyCxVCngXplJaL78tUOUE0...

 

This is an unsupported private preview, the scripts are provided as-is.

Highlighted

i was using the script that's listed in this forum post, 

 

ive signed up for the private preview, ill wait for that before i move ahead.

 

Thanks for the reply ! 

Highlighted

The script I posted uses 2 settings that are not the default for FSLogix. Perhaps that explains your issue?

 

1) It uses a .vhdx suffix. The default that FSLogix tries to load on an RDSH is .vhd

2) It creates the folders using SAM_SID rather than the default of SID_SAM

 

In the script change it to .vhd and SID_SAM if you want to use the defaults that are configured with a basic install of the FSLogix app in an RDSH. If you want to use the defaults of .vhd and sid_sam then the parts you want are on lines 113 and 222 of the attached file. 

 

The requirements in a .vhd* file itself for FSLogix are 2 things

 

1) Files are in "\Profile" rather than the root of the UPD.
2) A few registry keys for FSLogix. The script has code there to create the info and add to their registry

 

Attached is a more recent update that has an extra bit to not move files for a profile that fails to mount. The process to move and rename the UPD file itself is unmodified. I've used it to convert 500+ UPD .vhdx files from D:\UPD to D:\FSLogix\<SAM>_<SID>\.

 

@jerrywilkinson 

Highlighted

Thanks for the reply, originally i did change the defaults in the script to match my FSlogix GPO settings. It creates the new VHDX without any issues but when i try to login with the test user it doesnt attach the FSLogix VHDX , and i get the errors in the fslogix log 

VirtualDiskAPI::CreateFormattedDisk failed to create vhd(x): 

(The file exists.)

Status set to 9: Cannot create virtual disk

 

@adamsi175 

Highlighted

"(The file exists.)" as in the file already exists that it would want to create? Can it not read it due to permissions? The computer AD account presumably has permissions to the share and parent folder. After running the conversion script if you then rename the file slightly and try to log in do you end up with a new file based on the template VHD or the DefaultUser for the RDSH and can use that file? @jerrywilkinson 

Highlighted

ive checked permissions, and everything matches to when a FSLogix VHDX gets created. ive even tried logging in so a FSLogix VHDX gets created, then renaming the converted one to match the newly created one and the same issue happens. FSLogix doesnt mount the VHDX it just creates a local user profile on the RDSH. im still digging into the issue @adamsi175