Jalopy
New member
- Local time
- 7:31 PM
- Posts
- 9
- OS
- Windows 11
I've noticed when this cmd prompt pops up, on what I'm pretty sure is the reg unload portion, I get an 'access denied'. From what I can tell, nothing is going awry on the installs, the profile is still copied. Should this concern me? Should I even be using copy profile nowadays? I swear I've read some posts somewhere that say it should be either not used, or avoided for some reason I don't remember.
Powershell:
# Read the below to script reason
# https://learn.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-shell-setup-copyprofile
# Load the hive
reg load "HKU\DefaultUser" 'C:\Users\Default\NTUSER.DAT'
# Delete the keys
Remove-Item -Path "Registry::HKU\DefaultUser\Software\Microsoft\Windows\Shell\Associations\FileAssociationsUpdateVersion" -ErrorAction SilentlyContinue
Remove-Item -Path "Registry::HKU\DefaultUser\Software\Microsoft\Windows\Shell\Associations\UrlAssociations" -ErrorAction SilentlyContinue
Remove-Item -Path "Registry::HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts" -ErrorAction SilentlyContinue
# Unload the hive
reg unload "HKU\DefaultUser"
My Computer
At a glance
Windows 11
- OS
- Windows 11
- Computer type
- PC/Desktop




