Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function Get-DbaNetworkCertificate not passing credentials and EnableException to Get-DbaNetworkConfiguration #9519

Open
brunogr84 opened this issue Oct 17, 2024 · 0 comments
Labels
bugs life triage required New issue that has not been reviewed by maintainers

Comments

@brunogr84
Copy link

Verified issue does not already exist?

I have searched and found no existing issue

What error did you receive?

When running function Get-DbaNetworkCertificate with credentials, I received the "Access Denied" error message.

Steps to Reproduce

## Pass a credential with access to SQL Server however run the function with a a credential with no access. You will get access denied as the credential passed to the function is not used.
Get-DbaNetworkCertificate -SqlInstance <Server\Instance> -Credential <PsCredential>

Please confirm that you are running the most recent version of dbatools

Yes I am

Other details or mentions

No response

What PowerShell host was used when producing this error

Windows PowerShell (powershell.exe), Windows PowerShell ISE (powershell_ise.exe), VS Code (terminal), VS Code (integrated terminal)

PowerShell Host Version

5

SQL Server Edition and Build number

2019, 2022 all versions

.NET Framework Version

4.8

@brunogr84 brunogr84 added bugs life triage required New issue that has not been reviewed by maintainers labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs life triage required New issue that has not been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

1 participant