Powershell - cannot delete registry keys

Welcome Forums General PowerShell Q&A Powershell - cannot delete registry keys

This topic contains 1 reply, has 2 voices, and was last updated by

3 years, 9 months ago.

  • Author
  • #28249

    Topics: 1
    Replies: 0
    Points: 1
    Rank: Member

    Hi there
    I am trying to clean up some registry keys either locally or remotely with the following.
    Remove-Item -Path HKLM:\Software\microsoft\XYZ

    It does not work for me, I have tried on several machines. I also tried -Recurse and -Force.
    But no change.
    If I manually navigate through the registry I can delete the key. Also works if I use reg delete In a batch file.
    Any ideas. I am new to powershell.


  • #28250

    Topics: 16
    Replies: 108
    Points: 0
    Rank: Member

    Did you run the ISE as administrator?

The topic ‘Powershell - cannot delete registry keys’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort