# Set-RASPubItem

## NAME

Set-RASPubItem

## SYNOPSIS

Modifies settings of a published resource of any type (folder, app, desktop).

## SYNTAX

**Set-RASPubItem** \[-[Id](#Id)] _\<uint>_ \[-[Description](#Description) _\<string>_] \[-[Enabled](#Enabled) _\<bool>_] \[-[EnabledMode](#EnabledMode) {Disabled | Enabled | Maintenance}] \[-[Icon](#Icon) _\<string>_] \[-[IconIndex](#IconIndex) _\<uint>_] \[-[InheritMaintenance](#InheritMaintenance) _\<bool>_] \[-[MaintenanceMessage\_de\_DE](#MaintenanceMessage_de_DE) _\<string>_] \[-[MaintenanceMessage\_en\_US](#MaintenanceMessage_en_US) _\<string>_] \[-[MaintenanceMessage\_es\_ES](#MaintenanceMessage_es_ES) _\<string>_] \[-[MaintenanceMessage\_fr\_FR](#MaintenanceMessage_fr_FR) _\<string>_] \[-[MaintenanceMessage\_it\_IT](#MaintenanceMessage_it_IT) _\<string>_] \[-[MaintenanceMessage\_ja\_JP](#MaintenanceMessage_ja_JP) _\<string>_] \[-[MaintenanceMessage\_ko\_KR](#MaintenanceMessage_ko_KR) _\<string>_] \[-[MaintenanceMessage\_nl\_NL](#MaintenanceMessage_nl_NL) _\<string>_] \[-[MaintenanceMessage\_pt\_BR](#MaintenanceMessage_pt_BR) _\<string>_] \[-[MaintenanceMessage\_zh\_CN](#MaintenanceMessage_zh_CN) _\<string>_] \[-[MaintenanceMessage\_zh\_TW](#MaintenanceMessage_zh_TW) _\<string>_] \[-[Name](#Name) _\<string>_] \[-[PreferredRoutingEnabled](#PreferredRoutingEnabled) _\<bool>_] \[-[PublishToSite](#PublishToSite) _<_[_Site\[\]_](../classes-and-enumerations/site)_>_] \[-[PublishToSiteIds](#PublishToSiteIds) _\<uint\[]>_] \[-[ReplicateMaintenance](#ReplicateMaintenance) _\<bool>_] \[-[SiteId](#SiteId) _\<uint>_] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Set-RASPubItem** \[-[InputObject](#InputObject)] _<_[_PubItem_](../classes-and-enumerations/pubitem)_>_ \[-[Description](#Description) _\<string>_] \[-[Enabled](#Enabled) _\<bool>_] \[-[EnabledMode](#EnabledMode) {Disabled | Enabled | Maintenance}] \[-[Icon](#Icon) _\<string>_] \[-[IconIndex](#IconIndex) _\<uint>_] \[-[InheritMaintenance](#InheritMaintenance) _\<bool>_] \[-[MaintenanceMessage\_de\_DE](#MaintenanceMessage_de_DE) _\<string>_] \[-[MaintenanceMessage\_en\_US](#MaintenanceMessage_en_US) _\<string>_] \[-[MaintenanceMessage\_es\_ES](#MaintenanceMessage_es_ES) _\<string>_] \[-[MaintenanceMessage\_fr\_FR](#MaintenanceMessage_fr_FR) _\<string>_] \[-[MaintenanceMessage\_it\_IT](#MaintenanceMessage_it_IT) _\<string>_] \[-[MaintenanceMessage\_ja\_JP](#MaintenanceMessage_ja_JP) _\<string>_] \[-[MaintenanceMessage\_ko\_KR](#MaintenanceMessage_ko_KR) _\<string>_] \[-[MaintenanceMessage\_nl\_NL](#MaintenanceMessage_nl_NL) _\<string>_] \[-[MaintenanceMessage\_pt\_BR](#MaintenanceMessage_pt_BR) _\<string>_] \[-[MaintenanceMessage\_zh\_CN](#MaintenanceMessage_zh_CN) _\<string>_] \[-[MaintenanceMessage\_zh\_TW](#MaintenanceMessage_zh_TW) _\<string>_] \[-[Name](#Name) _\<string>_] \[-[PreferredRoutingEnabled](#PreferredRoutingEnabled) _\<bool>_] \[-[PublishToSite](#PublishToSite) _<_[_Site\[\]_](../classes-and-enumerations/site)_>_] \[-[PublishToSiteIds](#PublishToSiteIds) _\<uint\[]>_] \[-[ReplicateMaintenance](#ReplicateMaintenance) _\<bool>_] \[-[SiteId](#SiteId) _\<uint>_] \[_<_[_CommonParameters_](#CommonParameters)_>_]

## DESCRIPTION

Modifies settings of a published resource.

Modifies settings which are common to published resources of all types.

For resource type-specific options, use Set-RASPubFolder, Set-RASRDSApp, and Set-RASRDSDesktop cmdlets.

A resource can be specified using either its name, ID, or an object containing the resource properties.

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

## PARAMETERS

-**Name \<string>**\
A new name to assign to the published resource.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Icon \<string>**\
Published resource icon file name. Can be an executable (.exe), a .dll or a .ico file.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**IconIndex \<uint>**\
Icon index

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ReplicateMaintenance \<bool>**\
Replicate Maintenance

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**InheritMaintenance \<bool>**\
Inherit Maintenance

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Enabled \<bool>**\
Enable or disable a published resource.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**EnabledMode <**[**PubResourceEnabledMode**](../classes-and-enumerations/pubresourceenabledmode)**>**\
Changes the availability status of the published resource.

Possible values: Disabled, Enabled, Maintenance

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_en\_US \<string>**\
Maintenance message for the published resource in English.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_ja\_JP \<string>**\
Maintenance message for the published resource in Japanese.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_fr\_FR \<string>**\
Maintenance message for the published resource in French.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_es\_ES \<string>**\
Maintenance message for the published resource in Spanish.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_it\_IT \<string>**\
Maintenance message for the published resource in Italian.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_pt\_BR \<string>**\
Maintenance message for the published resource in Portuguese.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_nl\_NL \<string>**\
Maintenance message for the published resource in Dutch.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_de\_DE \<string>**\
Maintenance message for the published resource in German.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_zh\_TW \<string>**\
Maintenance message for the published resource in Chinese (Traditional).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_zh\_CN \<string>**\
Maintenance message for the published resource in Chinese (Simplified).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**MaintenanceMessage\_ko\_KR \<string>**\
Maintenance message for the published resource in Korean.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Description \<string>**\
Published resource description.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**PublishToSite <**[**Site\[\]**](../classes-and-enumerations/site)**>**\
An array of sites to which to publish a resource.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**PublishToSiteIds \<uint\[]>**\
An array of sites to which to publish a resource.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**PreferredRoutingEnabled \<bool>**\
Enable or disable Preferred Routing.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Id \<uint>**\
Published resource ID.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**InputObject <**[**PubItem**](../classes-and-enumerations/pubitem)**>**\
An object specifying the published resource.

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

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

-**SiteId \<uint>**\
Site ID.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

\<CommonParameters>

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

[PubItem](../classes-and-enumerations/pubitem)

## OUTPUTS

-none-

## EXAMPLES

**---------- EXAMPLE 1 ----------**

Set-RASPubItem 1 -Enabled $false

Enables a published resource specified by ID.\
&#xNAN;**---------- EXAMPLE 2 ----------**

Set-RASPubItem -InputObject $PubItem -Enabled $false

Modifies a published resource specified in the $PubItem variable, which is an object identifying a resource.

The obtain the object, use the Get-RASPubItem cmdlet.\
&#xNAN;**---------- EXAMPLE 3 ----------**

Get-RASPubItem -Id 1 | Set-RASPubItem -Enabled $false

Modifies a published resource which is specified by an object obtained from the pipeline output.

## RELATED LINKS

* [Get-RASPubItem](get-raspubitem)
* [Remove-RASPubItem](remove-raspubitem)
* [Set-RASPubItemUserFilter](https://github.com/Parallels-Corp/TEST-docs/blob/MDDoc-fixes/MDDocumentation/MD/RASAdmin/cmdlets/Set-RASPubItemUserFilter.md)
* [Set-RASPubItemClientFilter](https://github.com/Parallels-Corp/TEST-docs/blob/MDDoc-fixes/MDDocumentation/MD/RASAdmin/cmdlets/Set-RASPubItemClientFilter.md)
* [Set-RASPubItemIPFilter](https://github.com/Parallels-Corp/TEST-docs/blob/MDDoc-fixes/MDDocumentation/MD/RASAdmin/cmdlets/Set-RASPubItemIPFilter.md)
* [Set-RASPubItemMACFilter](https://github.com/Parallels-Corp/TEST-docs/blob/MDDoc-fixes/MDDocumentation/MD/RASAdmin/cmdlets/Set-RASPubItemMACFilter.md)
* [Set-RASPubItemGatewayFilter](https://github.com/Parallels-Corp/TEST-docs/blob/MDDoc-fixes/MDDocumentation/MD/RASAdmin/cmdlets/Set-RASPubItemGatewayFilter.md)
* [Set-RASPubItemFilter](set-raspubitemfilter)
