You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constantly check Test-DscConfiguration ... always show as false with pending state
run get-DscConfiguration got following error:
Get-DscConfiguration : PowerShell DSC resource MSFT_SqlScriptQuery failed to execute Get-TargetResource functionality
with error message: The running command stopped because the preference variable "ErrorActionPreference" or common
parameter is set to Stop: Incorrect syntax near ')'.
At line:1 char:1
Describe the bug
after apply SQL 2016 v1.3 STIG the state never return true after 24 hours
To Reproduce
configuration SqlS2016STIG
{
param
(
[parameter()]
[string]
$NodeName = 'localhost'
)
Import-DscResource -ModuleName PowerStig
Node $NodeName
{
SqlServer BaseLine
{
SqlVersion = '2016'
SqlRole = 'Instance'
StigVersion = '1.3'
ServerInstance = 'SQL2016STIG'
}
}
}
SqlS2016STIG -NodeName localhost -OutputPath C:\STIG\SQLConfig
Start-dscconfiguration -path c:\stig\Sqlconfig
Get-DscConfiguration : PowerShell DSC resource MSFT_SqlScriptQuery failed to execute Get-TargetResource functionality
with error message: The running command stopped because the preference variable "ErrorActionPreference" or common
parameter is set to Stop: Incorrect syntax near ')'.
At line:1 char:1
Expected behavior
The text was updated successfully, but these errors were encountered: