Add-WssFolder

Add-WssFolder

Creates a new server folder.

Syntax

Parameter Set: CustomFolderParams
Add-WssFolder [-Name] <String> [-Path] <String> [[-Description] <String> ] [[-HideFolderFromRemoteAccess] <Boolean> ] [-KeepPermissions] [ <CommonParameters>]

Parameter Set: BuiltinFolderParams
Add-WssFolder [-Id] <Guid> [-Path] <String> [[-Description] <String> ] [[-HideFolderFromRemoteAccess] <Boolean> ] [-KeepPermissions] [ <CommonParameters>]

Detailed Description

The Add-WssFolder cmdlet creates a server folder.

Parameters

-Description<String>

Specifies a description for the server folder.

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-HideFolderFromRemoteAccess<Boolean>

Specifies whether to hide the folder in Remote Desktop Web Access or Web service applications.

Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Id<Guid>

Specifies the GUID for a built-in server folder. Specify this parameter to re-create a default shared folder, such as the Music folder or the Pictures folder.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-KeepPermissions

Indicates that the cmdlet applies the permissions of the parent folder to the new folder.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies a name for the folder.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Path<String>

Specifies the path of the folder.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.WindowsServerSolutions.Storage.Folder

Examples

Example 1: Create a server folder

This command creates the folder named ProjectsEast in D:\Contoso\Main.

PS C:\> Add-WssFolder -Name "ProjectsEast" -Path "D:\Contoso\Main"

Get-WssFolder

Set-WssFolder

Move-WssFolder

Remove-WssFolder

Measure-WssFolder