Monday, January 20, 2014

Shared folders using ps

To create a shared folder using powershell

New-SmbShare –Name ShareName –Path C:\LocalFolder

To get permissions on existing

Get-SmbShareAccess –Name ShareName

 

References:

http://blogs.technet.com/b/josebda/archive/2012/06/27/the-basics-of-smb-powershell-a-feature-of-windows-server-2012-and-smb-3-0.aspx

No comments: