Page tree
Skip to end of metadata
Go to start of metadata

Description

Sets the permissions on a Share for a Trustee.

sRight can be one of the following values:

  • F: Full Control
  • C: Change
  • R: Read

 

Syntax

Security_SetSharePermissions(sShare, sTrustee, sRight) As Boolean

 

Parameters

sShare (String)

Name of the Share

sTrustee (String)

A trustee is a user or group. Trustee can either be "Domainname/username" or a Well-known SID (Security Identifier) 

sRight (String)

Access Right that should be set


Example

VBScript
If bStatus Then bStatus = Security_SetSharePermissions("\\Server01\CapaInstaller", "S-1-5-4", "F")

Scripting Guidelines

 

Related functions

Security functions Security_DenyShareAccess Security_RevokeSharePermissions

  • No labels