I am creating Shared folder and want to set permissions on it with SharePoint farm account and App_Pool Account as below:
$FullAccessAccounts = "domain\farm,domain\app_pool"
$ReadAccount = "domain\account3"
New-Item $folderpath –type directory
New-SMBShare –Name "MyFolder" –Path $folderpath –ContinuouslyAvailable $true –FullAccess $FullAccessAccounts -ReadAccess $ReadAccount
But i am getting following error, which i could not understand how to solve this?
New-SMBShare : No mapping between account names and security IDs was done.