diff --git a/sp_Blitz.sql b/sp_Blitz.sql index e101ac4e..2eaa9b1f 100644 --- a/sp_Blitz.sql +++ b/sp_Blitz.sql @@ -1836,9 +1836,18 @@ AS IF @Debug IN (1, 2) RAISERROR('Running CheckId [%d].', 0, 1, 2301) WITH NOWAIT; /* - #InvalidLogins is filled at the start during the permissions check + #InvalidLogins is filled at the start during the permissions check IF we are not sysadmin + filling it now if we are sysadmin */ - + IF @sa = 1 + BEGIN + INSERT INTO #InvalidLogins + ( + [LoginSID] + ,[LoginName] + ) + EXEC sp_validatelogins; + END; INSERT INTO #BlitzResults ( CheckID , Priority ,