Export (0) Print
Expand All
Expand Minimize

Add-WssFolder

Windows Server 2012 R2 and Windows 8.1

Updated: December 18, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Add-WssFolder

Creates a new server folder.

Syntax

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

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




Detailed Description

The Add-WssFolder cmdlet creates a server folder.

Parameters

-ComputerName<String>

Specifies the name of a computer.


Aliases

none

Required?

false

Position?

5

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-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

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

-KeepPermission

Indicates that the folder keeps the permissions of the parent 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.

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

    This cmdlet returns the new server 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"

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft