Overview of wmi_rsop.inc

Public Function Summary

Public functions are intended to be called by the code that imports this library.

Name Summary
wmi_rsop_accesstoken
wmi_rsop_auditpolicy
wmi_rsop_lockoutpolicy
wmi_rsop_passwdpolicy
wmi_rsop_policysetting

Public Function Details

wmi_rsop_accesstoken

Named Parameters

handle

Code

function wmi_rsop_accesstoken(handle)
{
  query = 'Select * from RSOP_UserPrivilegeRight where precedence=1';

  rsopList = wmi_query_rsop(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< rsopList) || !rsopList){
    return(0);
  }

  return rsopList;
}

function wmi_rsop_auditpolicy(handle)

		
top

wmi_rsop_auditpolicy

Named Parameters

handle

Code

function wmi_rsop_auditpolicy(handle)
{
  query = 'Select * from RSOP_AuditPolicy where precedence=1';

  rsopList = wmi_query_rsop(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< rsopList) || !rsopList){
    return(0);
  }

  return rsopList;
}

function wmi_rsop_policysetting(handle)

		
top

wmi_rsop_lockoutpolicy

Named Parameters

handle

Code

function wmi_rsop_lockoutpolicy(handle)
{
  query = 'Select * from RSOP_SecuritySettingBoolean where precedence=1';

  rsopList = wmi_query_rsop(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< rsopList) || !rsopList){
    return(0);
  }

  return rsopList;
}

function wmi_rsop_passwdpolicy(handle)

		
top

wmi_rsop_passwdpolicy

Named Parameters

handle

Code

function wmi_rsop_passwdpolicy(handle)
{
  query = 'Select * from RSOP_SecuritySettingNumeric where precedence=1';

  rsopList = wmi_query_rsop(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< rsopList) || !rsopList){
    return(0);
  }

  return rsopList;
}


		
top

wmi_rsop_policysetting

Named Parameters

handle

Code

function wmi_rsop_policysetting(handle)
{
  query = 'Select * from RSOP_PolicySetting where precedence=1';

  rsopList = wmi_query_rsop(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< rsopList) || !rsopList){
    return(0);
  }

  return rsopList;
}

function wmi_rsop_lockoutpolicy(handle)

		
top