microsoft/DiagManager

SQLDIAG Error opening HKLM key . Function result: 5. Message: Access is denied.

udara0306 opened this issue · 1 comments

Do you want to request a feature or report a bug?
when run on Windows 2019, sql server 2019 we get error

What is the current behavior?
SQLDIAG Error opening HKLM key . Function result: 5. Message: Access is denied.

**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem **
when run PS C:\Installation\PSSDIAG_log\pssd> .\pssdiag.ps1
What is the expected behavior?
collect information and smooth
Which versions of SQL Server and which OS are affected by this issue? Did this work in previous versions of our procedures?
when run on Windows 2019, sql server 2019 we get error

@udara0306 Apologies for the delay here.

Can you please verify you have the proper permissions and are invoking powershell as an admin as enumerated here:
https://github.com/microsoft/DiagManager/wiki/Run-PSSDiag-to-collect-logs#prerequisites

If you still are having the issue, please let me know.