/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 425 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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ