Skip to content

Commit fc1c5dc

Browse files
committed
Suppress message if registry key not found
1 parent 9434afb commit fc1c5dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sp_Blitz.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8690,7 +8690,8 @@ IF @ProductVersionMajor >= 10 AND NOT EXISTS ( SELECT 1
86908690
EXEC master.sys.xp_regread @rootkey = 'HKEY_LOCAL_MACHINE',
86918691
@key = 'SOFTWARE\Policies\Microsoft\Power\PowerSettings',
86928692
@value_name = 'ActivePowerScheme',
8693-
@value = @outval OUTPUT;
8693+
@value = @outval OUTPUT,
8694+
@no_output = 'no_output';
86948695

86958696
IF @outval IS NULL /* If power plan was not set by group policy, get local value [Git Hub Issue #1620]*/
86968697
EXEC master.sys.xp_regread @rootkey = 'HKEY_LOCAL_MACHINE',

0 commit comments

Comments
 (0)