# Move-RASAdminToGroup

## NAME

Move-RASAdminToGroup

## SYNOPSIS

Moves admin account to a user group.

## SYNTAX

**Move-RASAdminToGroup** \[[Id](#id-string)]\*\* *(uint)* \[[GroupId](#groupid-string)] *(uint)* \[[KeepGroupPermissions](#keepgrouppermissions-string) *(SwitchParameter)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Moves admin account to a user group.

In case that no user group is provided, admin account is unassigned from any user group.

## PARAMETERS

## Id (uint)

Account ID

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## GroupId (uint)

User Group ID

```
        Required?                    true

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## KeepGroupPermissions (SwitchParameter)

Specifies to keep the existing group permissions before moving.

```
        Required?                    false

        Position?                    named

        Default value                False

        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

-none-

## OUTPUTS

-none-

## EXAMPLES

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

Move-RASAdminToGroup -Id 1 -GroupId 2 -KeepGroupPermissions

Moves admin account with Id 1 to user group with Id 2 while keeping the group permissions.\
\&#xNAN;**---------- EXAMPLE 2 ----------**

Move-RASAdminToGroup -Id 1 -GroupId 2

Moves admin account with Id 1 to user group with Id 2.\
\&#xNAN;**---------- EXAMPLE 3 ----------**

Move-RASAdminToGroup -Id 1 -GroupId 0

Unassigns the admin account with Id 1 from any user group.

## RELATED LINKS

* [New-RASAdminAccount](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/new-rasadminaccount)
* [Get-RASAdminAccount](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasadminaccount)
* [Set-RASAdminAccount](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-rasadminaccount)
* [Remove-RASAdminAccount](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/remove-rasadminaccount)
