Get-WssFolder

Gets an object that represents a folder.

Syntax

Get-WssFolder []
Get-WssFolder
   [-Name] <String>
   [<CommonParameters>]
Get-WssFolder
   [-ID] <Guid>
   [<CommonParameters>]

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.

Examples

Example 1: Get a folder by using a name

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

This command gets the folder named ProjectsWest.

Parameters

-ID

Specifies the GUID for a folder.

Type:Guid
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name of a folder.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.WindowsServerSolutions.Storage.Folder

This cmdlet generates the server Folder object.