If you copy a login from one server to another, and then Deny the permission to connect to the database engine AND disable the login, once you then run Sync-DbaLoginPermission only the Permission to connect to the database engine is updated.
The login is still enabled on the destination server
Please confirm that you are running the most recent version of dbatools
2.1.6
Other details or mentions
No response
What PowerShell host was used when producing this error
PowerShell Core (pwsh.exe), VS Code (terminal)
PowerShell Host Version
Name Value
PSVersion 7.4.0
PSEdition Core
GitCommitId 7.4.0
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
SQL Server Edition and Build number
Microsoft SQL Server 2022 (RTM-CU8-GDR) (KB5029503) - 16.0.4080.1 (X64) Sep 1 2023 09:38:16 Copyright (C) 2022 Microsoft Corporation Developer Edition (64-bit) on Windows Server 2022 Standard 10.0 (Build 20348: ) (Hypervisor)
Verified issue does not already exist?
I have searched and found no existing issue
What error did you receive?
If you copy a login from one server to another, and then Deny the permission to connect to the database engine AND disable the login, once you then run
Sync-DbaLoginPermission
only the Permission to connect to the database engine is updated.The login is still enabled on the destination server
Steps to Reproduce
Please confirm that you are running the most recent version of dbatools
2.1.6
Other details or mentions
No response
What PowerShell host was used when producing this error
PowerShell Core (pwsh.exe), VS Code (terminal)
PowerShell Host Version
Name Value
PSVersion 7.4.0 PSEdition Core GitCommitId 7.4.0 OS Microsoft Windows 10.0.22621 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0
SQL Server Edition and Build number
Microsoft SQL Server 2022 (RTM-CU8-GDR) (KB5029503) - 16.0.4080.1 (X64) Sep 1 2023 09:38:16 Copyright (C) 2022 Microsoft Corporation Developer Edition (64-bit) on Windows Server 2022 Standard 10.0 (Build 20348: ) (Hypervisor)
.NET Framework Version
.NET 8.0.0