Skip to content

Latest commit

 

History

History
86 lines (64 loc) · 2.85 KB

nf-taskschd-itaskfolder-setsecuritydescriptor.md

File metadata and controls

86 lines (64 loc) · 2.85 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:taskschd.ITaskFolder.SetSecurityDescriptor
ITaskFolder::SetSecurityDescriptor (taskschd.h)
Sets the security descriptor for the folder.
ITaskFolder interface [Task Scheduler]
SetSecurityDescriptor method
ITaskFolder.SetSecurityDescriptor
ITaskFolder::SetSecurityDescriptor
SetSecurityDescriptor
SetSecurityDescriptor method [Task Scheduler]
SetSecurityDescriptor method [Task Scheduler]
ITaskFolder interface
taskschd.itaskfolder_setsecuritydescriptor
taskschd/ITaskFolder::SetSecurityDescriptor
taskschd\itaskfolder_setsecuritydescriptor.htm
taskschd
54f8a37b-87ac-449c-8e03-aeacd27e8c97
12/05/2018
ITaskFolder interface [Task Scheduler],SetSecurityDescriptor method, ITaskFolder.SetSecurityDescriptor, ITaskFolder::SetSecurityDescriptor, SetSecurityDescriptor, SetSecurityDescriptor method [Task Scheduler], SetSecurityDescriptor method [Task Scheduler],ITaskFolder interface, taskschd.itaskfolder_setsecuritydescriptor, taskschd/ITaskFolder::SetSecurityDescriptor
taskschd.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Taskschd.lib
Taskschd.dll
Windows
19H1
ITaskFolder::SetSecurityDescriptor
taskschd/ITaskFolder::SetSecurityDescriptor
c++
APIRef
kbSyntax
COM
taskschd.dll
ITaskFolder.SetSecurityDescriptor

ITaskFolder::SetSecurityDescriptor

-description

Sets the security descriptor for the folder.

-parameters

-param sddl [in]

The security descriptor for the folder.

Note   If the Local System account is denied access to a task folder, then the Task Scheduler service can produce unexpected results.
 

-param flags [in]

A value that specifies how the security descriptor is set.

-returns

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

-remarks

You can specify the access control list (ACL) in the security descriptor for a task folder in order to allow or deny certain users and groups access to a task folder.

-see-also

IRegisteredTask::SetSecurityDescriptor

ITaskFolder

ITaskFolder::GetSecurityDescriptor