Get-WssFolder

Get-WssFolder

Gets an object that represents a folder.

Syntax

Parameter Set: ByIdParamSet
Get-WssFolder [-ID] <Guid> [ <CommonParameters>]

Parameter Set: ByNameParamSet
Get-WssFolder [-Name] <String> [ <CommonParameters>]

Detailed Description

The Get-WssFolder cmdlet gets an object that represents a folder. Specify a GUID for a specific folder. If you do not specify a GUID, the cmdlet gets Folder objects for all the folders on current server.

Parameters

-ID<Guid>

Specifies the GUID for a folder.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a folder.

Aliases

none

Required?

true

Position?

1

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.

  • Folder

Examples

Example 1: Get a folder by using a name

This command gets the folder named ProjectsWest.

PS C:\> Get-WssFolder -Name "ProjectsWest"

Get-WssFolder

Set-WssFolder

Add-WssFolder

Move-WssFolder

Remove-WssFolder

Measure-WssFolder