Hello Mowbray, James,
Thank you for posting in Q&A forum.
In more recent Windows Server builds, the equivalent to rmtshare.exe is the New-SmbShare cmdlet in PowerShell.
Example 1: Create an SMB share
PowerShellCopy
$Parameters = @{
Name = 'Public'
Path = 'D:\Public'
FullAccess = 'Contoso\Administrator', 'Contoso\Contoso-HV1$'
}
New-SmbShare @Parameters
This command creates an SMB share named VMSFiles and grants Full Access permissions to Contoso\Administrator, and Contoso\Contoso-HV1$.
Reference:
New-SmbShare (SmbShare) | Microsoft Learn
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.