/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Unable to remove the key under Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options

09/17/2019 323 views

I wanted to delete key under this path Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options using Powershell command. I can see the folder path under registry but in powershell by using test-path , getting false. But the test-path returns true upto microsoft


4 Comments   [ + ] Show comments

Comments

  • Are you running the powershell script in the same user context as you are viewing the registry?
  • For installation, I did active setup and i need to uninstall the key from HKCU. Yes, trying to uninstall the key from the user context. Do i need to use active setup for uninstalling as well ?
  • So you are opening regedit and can see the key, but then when you run the PowerShell script it can't?
  • i would say to try going for LOCAL_MAchine instead of current_user. per user is more of a headache than if u go straight to LOCAL_MACHINE.

Be the first to answer this question