Juri I am updating all of the filters that are included by the target, but like I mentioned the policy target does not update until up to 30 mins later. The policy is enabled.
B3TTS32: Thanks for your reply. Thats what I am trying to do, as you can see here:
==============================================================
Const policyGuid = "{23b45281-e519-4d2c-a5e9-366260d7243c}"
set oScopingManagement = CreateObject("Altiris.ASDK.NS.ScopingManagement")
oScopingManagement.TargetServer = strTargetServer
oScopingManagement.UserName = strUserName
oScopingManagement.Password = strPassword
oScopingManagement.DomainName = strDomainName
oScopingManagement.Authenticate()
On Error Resume Next
set resources = oScopingManagement.GetResourcesTargetedByPolicy(policyGuid)
if Err <> 0 then
response.write "ERROR: " & Err
end if
response.write "Comps: " & resources(0)
response.write "Comps: " & resources(1)
if Err <> 0 then
response.write "ERROR: " & Err
end if
=========================================================
I get a response of: ERROR: 424, ERROR: 13.
I am not sure if something is wrong with the ASDK call or not, as I am following the instructions. Ill keep looking!