New-Share
PackageDeployment Module Help |
Package Deployment Module |
New-Share Cmdlet |
Version 4.0.0.5 |
New-Share
Synopsis
Creates a new local or remote file share.
Syntax
New-Share [-ServerName] <String> [-ShareName] <String> [-SharePath] <String> [[-Comment] <String>] [-UserLimit] <String> [[-Context] <String>] [-ContinueOnError] [<CommonParameters>]
Description
Creates a local or remote SMB share.
Parameters
-ServerName <String> |
||||||
Name of the machine the share is to be created on. |
||||||
|
-ShareName <String> |
||||||
Name of the share under which the shared path can be accessed. |
||||||
|
-SharePath <String> |
||||||
Local path of the directory to be shared. |
||||||
|
-Comment <String> |
||||||
Comment of the share. |
||||||
|
-UserLimit <String> |
||||||
Maximum number of simultaneous share accesses. -1 for unlimited. |
||||||
|
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |