Skip to content

Commit e85173d

Browse files
authored
Update sp_Blitz.sql
Extend details for Invalid Logins - empty AD Groups will occasionally show up here (it's an AD thing), and it's a pain to delete that group and then have to reinstate it in SQL when it turns out you do need it.
1 parent 2385da1 commit e85173d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sp_Blitz.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ AS
18621862
'Security' AS FindingsGroup ,
18631863
'Invalid login defined with Windows Authentication' AS Finding ,
18641864
'https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-validatelogins-transact-sql' AS URL ,
1865-
( 'Windows user or group ' + QUOTENAME(LoginName) + ' is mapped to a SQL Server principal but no longer exists in the Windows environment.') AS Details
1865+
( 'Windows user or group ' + QUOTENAME(LoginName) + ' is mapped to a SQL Server principal but no longer exists in the Windows environment. Sometimes empty AD groups can show up here so check thoroughly.') AS Details
18661866
FROM #InvalidLogins
18671867
;
18681868
END;

0 commit comments

Comments
 (0)