3.1 Ensure 'Server Authentication' Property is set to 'Windows Authentication Mode'

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version


Uses Windows Authentication to validate attempted connections.


Windows provides a more robust authentication mechanism than SQL Server authentication.


Changing the login mode configuration requires a restart of the service.


Perform either the GUI or T-SQL method shown:

GUI Method

Open SQL Server Management Studio.

Open the Object Explorer tab and connect to the target database instance.

Right click the instance name and select Properties.

Select the Security page from the left menu.

Set the Server authentication setting to Windows Authentication Mode.

T-SQL Method

Run the following T-SQL in a Query Window:

USE [master]
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', REG_DWORD, 1

Restart the SQL Server service for the change to take effect.

Default Value:

Windows Authentication Mode

See Also