/
Security_SetSharePermissions
Security_SetSharePermissions
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")
Related functions
Security functions Security_DenyShareAccess Security_RevokeSharePermissions
, multiple selections available,
Related content
Security manager
Security manager
More like this
$cs.Sys_IsMinimumRequiredDiskspaceAvailable
$cs.Sys_IsMinimumRequiredDiskspaceAvailable
More like this
$cs.Reg_SetQword
$cs.Reg_SetQword
More like this
Sys_GetSerialNumber
Sys_GetSerialNumber
More like this
CMS_AddComputerToStaticGroup
CMS_AddComputerToStaticGroup
More like this
CapaOne AdminOnDemand
CapaOne AdminOnDemand
More like this