dataplat / dbadisa

🦅 DISA STIG automation module for SQL Server
MIT License
16 stars 13 forks source link

ignore ##MS logins #96

Closed potatoqualitee closed 4 years ago

potatoqualitee commented 4 years ago

foreach ($serverlogin in ($server.Logins | Where Name -notlike '##MS_*')) {

for set audit manintaner

potatoqualitee commented 4 years ago

also $sql = "IF NOT EXISTS(SELECT name FROM sys.server_principals WHERE type = 'R' AND name='$Role')

potatoqualitee commented 4 years ago

fixed