Skip to content

Commit

Permalink
added remediation commands to output
Browse files Browse the repository at this point in the history
  • Loading branch information
EitanBlumin committed Nov 4, 2024
1 parent 50049a0 commit 3061ba7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ CLOSE dbs;
DEALLOCATE dbs;

SELECT *
, DropUserCommand = N'USE ' + QUOTENAME(DBName) + N'; DROP USER ' + QUOTENAME(UserName) + N';'
, RemoveSysAdminRoleCommand = N'ALTER SERVER ROLE [sysadmin] DROP MEMBER ' + QUOTENAME(LoginName) + N';'
FROM @Results

0 comments on commit 3061ba7

Please sign in to comment.