-
-
Notifications
You must be signed in to change notification settings - Fork 790
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
Export-DbaLinkedServer can't get decrypt password #5953
Comments
@yugioh0716 this is a best effort attempt to try and decrypt the password. Are you running this locally on the server or from a remote machine? In most environments the only way this works is to run this on the local source server. |
@wsmelton I running the command in the local source SQL server, and I try to running the command in different SQL Server and get the same issue. |
Your information shows you are working on a WORKGROUP computer, not a server part of a domain? If that is true then the method we use to attempt to decrypt the password will not work. There are remote commands in PowerShell that just won't work in a WORKGROUP environment. |
@wsmelton My SQL Server is standalone installation in Windows Server 2016 not join domain, but I run the command in local source Server, I do not use remote command . The command is not work in workgroup SQL server? |
I understand your setup but the method we use account for remote calling of code. In a WORKGROUP machine those commands will not function. So we cannot support decyrpting passwords in a WORKGROUP setup. |
Environmental information
Powershell Version
Dbatools Version
OS Version
Domain or WORKGROUP
SQL Server:
Report
Use Export-DbaLinkedServer can not export file include linked server decrypt password
/* For security reasons the linked server remote logins password is changed with ######## */
I try to use administrator to run Export-DbaLinkedServer, but I still get the same result.
Host used
Errors Received
WARNING: [Get-DecryptedObject] Can't unprotect registry data on MyDBServer. Do you have administrative access to the Windows registry on Otherwise, we're out of ideas.
Steps to Reproduce
Expected Behavior
Actual Behavior
WARNING: [Get-DecryptedObject] Can't unprotect registry data on MyDBServer. Do you have administrative access to the Windows registry on Otherwise, we're out of ideas.
The sql file show /* For security reasons the linked server remote logins password is changed with ######## */
The text was updated successfully, but these errors were encountered: