> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-raspubfolder.md).

# Set-RASPubFolder

## SYNOPSIS

Modifies properties of a published folder.

## SYNTAX

```powershell
Set-RASPubFolder [-Id] <uint> [-AdminOnly <bool>] [-Description <string>]
 [-EnabledMode {Disabled | Enabled | Maintenance}] [-Icon <string>] [-IconIndex <uint>]
 [-InheritMaintenance <bool>] [-MaintenanceMessage_de_DE <string>]
 [-MaintenanceMessage_en_US <string>] [-MaintenanceMessage_es_ES <string>]
 [-MaintenanceMessage_fr_FR <string>] [-MaintenanceMessage_it_IT <string>]
 [-MaintenanceMessage_ja_JP <string>] [-MaintenanceMessage_ko_KR <string>]
 [-MaintenanceMessage_nl_NL <string>] [-MaintenanceMessage_pt_BR <string>]
 [-MaintenanceMessage_zh_CN <string>] [-MaintenanceMessage_zh_TW <string>] [-Name <string>]
 [-PreferredRoutingEnabled <bool>] [-PublishToSite <Site[]>] [-PublishToSiteIds <uint[]>]
 [-ReplicateMaintenance <bool>] [-SiteId <uint>] [<CommonParameters>]
```

```powershell
Set-RASPubFolder [-InputObject] <PubItem> [-AdminOnly <bool>] [-Description <string>]
 [-EnabledMode {Disabled | Enabled | Maintenance}] [-Icon <string>] [-IconIndex <uint>]
 [-InheritMaintenance <bool>] [-MaintenanceMessage_de_DE <string>]
 [-MaintenanceMessage_en_US <string>] [-MaintenanceMessage_es_ES <string>]
 [-MaintenanceMessage_fr_FR <string>] [-MaintenanceMessage_it_IT <string>]
 [-MaintenanceMessage_ja_JP <string>] [-MaintenanceMessage_ko_KR <string>]
 [-MaintenanceMessage_nl_NL <string>] [-MaintenanceMessage_pt_BR <string>]
 [-MaintenanceMessage_zh_CN <string>] [-MaintenanceMessage_zh_TW <string>] [-Name <string>]
 [-PreferredRoutingEnabled <bool>] [-PublishToSite <Site[]>] [-PublishToSiteIds <uint[]>]
 [-ReplicateMaintenance <bool>] [-SiteId <uint>] [<CommonParameters>]
```

## DESCRIPTION

Modifies properties of a published folder.

You can include only the parameters (published folder properties) that you want to modify.

To set filtering options, use Pub Filtering cmdlets.

## EXAMPLES

### Example 1

```powershell
Set-RASPubFolder 1 -Enabled $false
```

Disables a published folder specified by ID.

### Example 2

```powershell
Set-RASPubFolder $PubFolder -Enabled $false
```

Disables a published folder specified by the $PubFolder object.

To obtain an object, use the Get-RASPubFolder cmdlet.

### Example 3

```powershell
Get-RASPubFolder -Id 1 | Set-RASPubFolder -Enabled $false
```

Disables a folder specified by an object obtained from the pipeline output.

## PARAMETERS

### -AdminOnly

Use folder for administrative purposes only.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PreferredRoutingEnabled

Enable or disable Preferred Routing.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name

A new name to assign to the published resource.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Icon

Published resource icon file name. Can be an executable (.exe), a .dll or a .ico file.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IconIndex

Icon index

Specifies the index of the icon that will be loaded from the binary specified in the Icon property

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ReplicateMaintenance

Replicate Maintenance

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InheritMaintenance

Inherit Maintenance

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnabledMode

Changes the availability status of the published resource.

Possible values: Disabled, Enabled, Maintenance

Type reference: [PubResourceEnabledMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/pubresourceenabledmode.md)

```yaml
Type: PubResourceEnabledMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_en\_US

Maintenance message for the published resource in English.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_ja\_JP

Maintenance message for the published resource in Japanese.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_fr\_FR

Maintenance message for the published resource in French.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_es\_ES

Maintenance message for the published resource in Spanish.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_it\_IT

Maintenance message for the published resource in Italian.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_pt\_BR

Maintenance message for the published resource in Portuguese.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_nl\_NL

Maintenance message for the published resource in Dutch.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_de\_DE

Maintenance message for the published resource in German.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_zh\_TW

Maintenance message for the published resource in Chinese (Traditional).

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_zh\_CN

Maintenance message for the published resource in Chinese (Simplified).

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaintenanceMessage\_ko\_KR

Maintenance message for the published resource in Korean.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Description

Published resource description.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PublishToSite

An array of sites to which to publish a resource.

Type reference: [Site\[\]](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/site.md)

```yaml
Type: Site[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PublishToSiteIds

An array of sites to which to publish a resource.

```yaml
Type: uint[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id

Published resource ID.

```yaml
Type: uint
Required: True
Position: 0
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -InputObject

An object specifying the published resource.

To obtain the object, use the Get-PubItem cmdlet.

Type reference: [PubItem](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/pubitem.md)

```yaml
Type: PubItem
Required: True
Position: 0
Default value: None
Accept pipeline input: true (ByValue)
Accept wildcard characters: False
```

### -SiteId

Site ID.

```yaml
Type: uint
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### [PubItem](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/pubitem.md)

## OUTPUTS

### None

## RELATED LINKS

* [Get-RASPubFolder](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-raspubfolder.md)
* [Remove-RASPubFolder](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/remove-raspubfolder.md)
* [Set-RASPubDefaultSettings](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-raspubdefaultsettings.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-raspubfolder.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
