Hello. I have a script that runs post-setup that deletes some registry keys:
@"HKEY_LOCAL_MACHINE\Software\Classes\DesktopBackground\Shell\Personalize",
@"HKEY_LOCAL_MACHINE\Software\Classes\DesktopBackground\Shell\Display",
@"HKEY_CLASSES_ROOT\AppXzwr976v2e060wada4gabrk1x69h2dbwy\shell",
@"HKEY_CLASSES_ROOT\AppXhk4des8gf2xat3wtyzc5q06ny78jhkqx\shell",
@"HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\shell"
The ones in HKLM work but not the last four in HKCR. Thing is, if I run this script as a user with admin permissions, it successfully removes all five. So obviously something is going on where somehow the environment during OOBE/Post-setup is causing this.
Can anyone help?
@"HKEY_LOCAL_MACHINE\Software\Classes\DesktopBackground\Shell\Personalize",
@"HKEY_LOCAL_MACHINE\Software\Classes\DesktopBackground\Shell\Display",
@"HKEY_CLASSES_ROOT\AppXzwr976v2e060wada4gabrk1x69h2dbwy\shell",
@"HKEY_CLASSES_ROOT\AppXhk4des8gf2xat3wtyzc5q06ny78jhkqx\shell",
@"HKEY_CLASSES_ROOT\AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw\shell"
The ones in HKLM work but not the last four in HKCR. Thing is, if I run this script as a user with admin permissions, it successfully removes all five. So obviously something is going on where somehow the environment during OOBE/Post-setup is causing this.
Can anyone help?