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

Get-MSSQLCredentialPasswords - Empty result on SQLServer 2008 #8

Open
CaledoniaProject opened this issue Jul 9, 2018 · 1 comment

Comments

@CaledoniaProject
Copy link

CaledoniaProject commented Jul 9, 2018

I came from this post, and Get-MSSQLCredentialPasswords does not return anything.

After I while I found the following query returns empty result:

$SqlCmd = "SELECT name,credential_identity,substring(imageval,5,$ivlen) iv, substring(imageval,$($ivlen+5),len(imageval)-$($ivlen+4)) pass from master.sys.credentials cred inner join master.sys.sysobjvalues obj on cred.credential_id = obj.objid where valclass=28 and valnum=2"

Any ideas? I got no exceptions or errors.

@Yura881
Copy link

Yura881 commented May 9, 2023

Hello,
The same for me, probably. After $Data=$Cmd.ExecuteReader() the $Data is empty.

Microsoft SQL Server Express Edition with Advanced Services (64-bit)
Microsoft Windows NT 6.1 (7601)
10.50.4042.0
SQL Server 2008 R2 SP2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants