> 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/move-raspubitem.md).

# Move-RASPubItem

## SYNOPSIS

Moves a published item in the Published Resources tree.

## SYNTAX

```powershell
Move-RASPubItem -Id <uint> [-ParentId <uint>] [-PreviousId <uint>] [<CommonParameters>]
```

```powershell
Move-RASPubItem [-InputObject] <PubItem> [-ParentId <uint>] [-PreviousId <uint>]
 [<CommonParameters>]
```

## DESCRIPTION

Moves a published item to a specified node in the Published Resources tree.

## EXAMPLES

### Example 1

```powershell
Move-RASPubItem -Id 5 -ParentId 12
```

Places the specified published item under the specified parent (ParentId).

To obtain the parent PubItem ID, use the Get-RASPubItem cmdlet.

### Example 2

```powershell
Move-RASPubItem -Id 10 -ParentId 12 -PreviousId 22
```

Place the specified published item under the specified parent (ParentId) and after the specified sibling item (PreviousId).

To obtain the parent item ID, use the Get-RASPubItem cmdlet.

### Example 3

```powershell
$PubItem | Move-RASPubItem -PreviousId 15
```

Invoke the move pub item command, which is identified by an object obtained from the pipeline output.

To obtain the parent item ID, use the Get-RASPubItem cmdlet.

## PARAMETERS

### -Id

ID of a published item to be moved.

To obtain the published item ID, use the Get-PubItem command.

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

### -InputObject

The published item object to be moved.

To obtain an object representing a published item, use the Get-PubItem command."

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
```

### -ParentId

ID of a new published item parent.

To obtain the published item ID, use the Get-PubItem command.

For the root node, set ParentId to '0' (zero).

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

### -PreviousId

ID of a sibling after which to place the specified published item.

To obtain the sibling item ID, use the Get-PubItem command.

```yaml
Type: uint
Required: False
Position: Named
Default value: 4294967295
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-RASPubItem](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-raspubitem.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/move-raspubitem.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.
