CmdID / PowerShell / Cmdlets / Grant
Grant-FileShareAccess
Grants access to a file share. Windows Server PowerShell reference
From the Windows Server PowerShell reference 12 parameters Its page in the reference
Parameters
-AccessRightSpecifies the access rights for the accounts.-AccountNameSpecifies an array of account names.-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-FileServerSpecifies a file server.-InputObjectSpecifies the input object that is used in a pipeline command.-NameSpecifies an array of file share names.-PassThruReturns an object representing the item with which you are working.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-UniqueId, -IdSpecifies an array of unique IDs of file shares.-WhatIf, -wiShows what would happen if the cmdlet runs.