Hi, I found a code like this, but just to share the folder opens, write, and he won't give permission to modify.
Const $FILE_SHARE = 0
Const $MAXIMUM_CONNECTIONS = 25
$strComputer = "atl-ws-01"
$objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\cimv2")
$objNewShare = $objWMIService.Get("Win32_Share")
$errReturn = $objNewShare.Create("C:\Public", "PublicShare", $FILE_SHARE, $MAXIMUM_CONNECTIONS, "Public share for Fabrikam employees.")
How to access from other computers, read, write and how we can give permissions to?