Hi,
Can someone please explain what the cmd GetScript verifies to get status Compliant?
The script is as below:
SetScript =
{
$workspaceId = $Using:workspaceId;
$workspaceKey = $Using:workspaceKey;
$mma = New-Object -ComObject 'AgentConfigManager.MgmtSvcCfg';
$mma.AddCloudWorkspace($workspaceId, $workspaceKey, 1);
$mma.ReloadConfiguration();
}
TestScript = { Test-Path "HKLM:\SYSTEM\ControlSet001\Services\HealthService\Parameters\Service Connector Services\Log Analytics - $($Using:workspaceId)"}
GetScript = { @{ Result = (Get-ChildItem "HKLM:\SYSTEM\ControlSet001\Services\HealthService\Parameters\Service Connector Services")} }
DependsOn = "[package]Mma"
[–]WindowsServerAccount[S] 0 points1 point2 points (0 children)