Reply to thread

The creation of new profiles wasn't perfect: the new profile was created, but the start menu and the action centre didn't work.

The power shell code I have posted above didn't work directly inside the new profile.

I modified the first line a bit: $AppPaths = (Get-AppxPackage -Name "*" -user MyWorkingUser).InstallLocation

But then I got this message for every packages:


Hence:


  • I tried to get all the folders and the files that should have been present in the default folder from the "default.migrated", "default.old", and my user profile folders. I tried to create a new profile: still no joy.
  • I recreated all the junctions from an elevated command prompt with the mklink /j command. I tried to create a new profile: still no joy.
    I used that command because it seems those junctions can't be copied.
    I tried to copy them with simple copy, xcopy and robocopy... Then I thought it could be easier to make them manually (instead of trying to learn the methods to use with xcopy and robocopy) and so I did it.
    Examples (I used Italian names for the junctions):[HIDE][CODE]mklink /j "C:\Users\default\Cookies" "C:\Users\default\AppData\Local\Microsoft\Windows\INetCookies"
    mklink /j "C:\Users\default\Dati applicazioni" "C:\Users\default\AppData\Roaming"
    mklink /j "C:\Users\default\Documenti" "C:\Users\default\Documents"
    mklink /j "C:\Users\default\Impostazioni locali" "C:\Users\default\AppData\Local"
    mklink /j "C:\Users\default\Menu Avvio" "C:\Users\default\AppData\Roaming\Microsoft\Windows\Start Menu"
    mklink /j "C:\Users\default\Modelli" "C:\Users\default\AppData\Roaming\Microsoft\Windows\Templates"
    mklink /j "C:\Users\default\Recenti" "C:\Users\default\AppData\Roaming\Microsoft\Windows\Recent"
    mklink /j "C:\Users\default\Risorse di rete" "C:\Users\default\AppData\Roaming\Microsoft\Windows\Network Shortcuts"
    mklink /j "C:\Users\default\Risorse di stampa" "C:\Users\default\AppData\Roaming\Microsoft\Windows\Printer Shortcuts"
    mklink /j "C:\Users\default\SendTo" "C:\Users\default\AppData\Roaming\Microsoft\Windows\SendTo"[/CODE][/HIDE]This is NOT the complete list.
  • I got the windows 10 installation disk (I have previously downloaded it through MS website, some months/years ago, and burned it in a CD), found the boot.wim (in the sources folder) and mounted it using dism /mount (from an elevated command prompt).
  • Then I copied the default folder over my (not working) default folder. It contains six ntuserfiles (mine were corrupt, obviously):
    1. ntuser.dat
    2. ntuser.dat.log1
    3. ntuser.dat.log2
    4. NTUSER.DAT{67e8366e-7ecf-11e5-80df-e41d2d718e10}.TM.blf
    5. NTUSER.DAT{67e8366e-7ecf-11e5-80df-e41d2d718e10}.TMContainer00000000000000000001.regtrans-ms
    6. NTUSER.DAT{67e8366e-7ecf-11e5-80df-e41d2d718e10}.TMContainer00000000000000000002.regtrans-ms
  • "Unmounted" (dismounted?) the windows 10 image using dism /unmount (from an elevated command prompt).
  • And finally, after I discovered the right-click on start didn't work (on a new test profile), I added (copied) to the default profile the winx folder (taken from my user profile) in C:\Users\default\AppData\Local\Microsoft\Windows.
  • The creation of new user profiles seems to be fixed, finally!



Lessons learned/learnt (third lesson here, at left):


  1. Don't try to remove all administrators just for curiosity (curiosity killed the BRAT).
  2. Don't mess with the default folder (if you intend to create new WORKING user profiles).


Back
Top