RegisteredTask.GetSecurityDescriptor method

For scripting, gets the security descriptor that is used as credentials for the registered task.

Syntax

sddl = .GetSecurityDescriptor( _
  ByVal securityInformation _
)

Parameters

securityInformation

The security information from SECURITY_INFORMATION.

Return value

The security descriptor for the registered task.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

RegisteredTask

TaskFolder.GetSecurityDescriptor

RegisteredTask.SetSecurityDescriptor