# Add-RASImageOptimizationRegistry

### NAME

Add-RASImageOptimizationRegistry\ <br>

### SYNOPSIS

Adds Registry property to the list.\ <br>

### SYNTAX

Add-RASImageOptimizationRegistry -[DefObjType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#DefObjType) {RDSDef | VDIDef | AVDSingleSessionDefaultSettings | AVDMultiSessionDefaultSettings | VDIGuestDef} -[DisplayName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#DisplayName) *\<string>* -[Path](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Path) *\<string>* \[-[Action](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Action) {Add | Modify | Delete}] \[-[DWORDValue](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#DWORDValue) *\<uint>*] \[-[HiveType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#HiveType) {HKEY\_CURRENT\_CONFIG | HKEY\_USERS | HKEY\_LOCAL\_MACHINE | HKEY\_CLASSES\_ROOT}] \[-[RegistryName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#RegistryName) *\<string>*] \[-[RegType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#RegType) {REG\_SZ | REG\_DWORD | REG\_QWORD | REG\_MULTI\_SZ | REG\_EXPAND\_SZ}] \[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#SiteId) *\<uint>*] \[-[StringValue](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#StringValue) *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#CommonParameters)*>*]\
\
Add-RASImageOptimizationRegistry \[-[Id](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Id)] *\<uint>* -[DisplayName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#DisplayName) *\<string>* -[ObjType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#ObjType) {RDSHost | RDS | VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate | AVDTemplate} -[Path](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Path) *\<string>* \[-[Action](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Action) {Add | Modify | Delete}] \[-[DWORDValue](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#DWORDValue) *\<uint>*] \[-[HiveType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#HiveType) {HKEY\_CURRENT\_CONFIG | HKEY\_USERS | HKEY\_LOCAL\_MACHINE | HKEY\_CLASSES\_ROOT}] \[-[RegistryName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#RegistryName) *\<string>*] \[-[RegType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#RegType) {REG\_SZ | REG\_DWORD | REG\_QWORD | REG\_MULTI\_SZ | REG\_EXPAND\_SZ}] \[-[StringValue](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#StringValue) *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#CommonParameters)*>*]\
\
Add-RASImageOptimizationRegistry \[-[InputObject](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#InputObject)] *<*[*RASSerilazableObj*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RASSerilazableObj.html)*>* -[DisplayName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#DisplayName) *\<string>* -[Path](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Path) *\<string>* \[-[Action](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Action) {Add | Modify | Delete}] \[-[DWORDValue](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#DWORDValue) *\<uint>*] \[-[HiveType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#HiveType) {HKEY\_CURRENT\_CONFIG | HKEY\_USERS | HKEY\_LOCAL\_MACHINE | HKEY\_CLASSES\_ROOT}] \[-[RegistryName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#RegistryName) *\<string>*] \[-[RegType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#RegType) {REG\_SZ | REG\_DWORD | REG\_QWORD | REG\_MULTI\_SZ | REG\_EXPAND\_SZ}] \[-[StringValue](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#StringValue) *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#CommonParameters)*>*]\
\
Add-RASImageOptimizationRegistry \[-[Name](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Name)] *\<string>* \[\[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#SiteId)] *\<uint>*] -[DisplayName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#DisplayName) *\<string>* -[ObjType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#ObjType) {RDSHost | RDS | VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate | AVDTemplate} -[Path](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Path) *\<string>* \[-[Action](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#Action) {Add | Modify | Delete}] \[-[DWORDValue](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#DWORDValue) *\<uint>*] \[-[HiveType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#HiveType) {HKEY\_CURRENT\_CONFIG | HKEY\_USERS | HKEY\_LOCAL\_MACHINE | HKEY\_CLASSES\_ROOT}] \[-[RegistryName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#RegistryName) *\<string>*] \[-[RegType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#RegType) {REG\_SZ | REG\_DWORD | REG\_QWORD | REG\_MULTI\_SZ | REG\_EXPAND\_SZ}] \[-[StringValue](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#StringValue) *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Add-RASImageOptimizationRegistry.html#CommonParameters)*>*]\ <br>

### DESCRIPTION

Adds Registry to the following list\ <br>

### PARAMETERS

\
-**Action <**[**ActionType**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ActionType.html)**>**\
\
Possible values: Add, Modify, Delete\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                Add
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**RegistryName \<string>**\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DWORDValue \<uint>**\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DisplayName \<string>**\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**HiveType <**[**HiveType**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/HiveType.html)**>**\
\
Possible values: HKEY\_CURRENT\_CONFIG, HKEY\_USERS, HKEY\_LOCAL\_MACHINE, HKEY\_CLASSES\_ROOT\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                HKEY_CURRENT_CONFIG
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Path \<string>**\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**RegType <**[**ValueType**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ValueType.html)**>**\
\
Possible values: REG\_SZ, REG\_DWORD, REG\_QWORD, REG\_MULTI\_SZ, REG\_EXPAND\_SZ\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                REG_SZ
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**StringValue \<string>**\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Name \<string>**\
The name or server for which to modify the Image Optimization settings.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SiteId \<uint>**\
Site ID from which to modify the Image Optimization settings.\
\
If the parameter is omitted, the Licensing Server site ID will be used.\ <br>

```
        Required?                    false
```

```
        Position?                    1
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Id \<uint>**\
The ID of a server for which to modify the Image Optimization settings.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InputObject <**[**RASSerilazableObj**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RASSerilazableObj.html)**>**\
An object of type RDS, VDITemplate or VDIDesktop for which to modify the Image Optimization settings.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ObjType <**[**OptimizationServerObjType**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/OptimizationServerObjType.html)**>**\
The Object Type for which to modify the Image Optimization settings.\
\
Possible values: RDSHost, RDS, VDIHostPool, AVDHostPool, RDSTemplate, VDITemplate, AVDTemplate\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DefObjType <**[**ServerDefObjType**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ServerDefObjType.html)**>**\
The Default Object Type for which to modify the Image Optimization settings.\
\
Possible values: RDSDef, VDIDef, AVDSingleSessionDefaultSettings, AVDMultiSessionDefaultSettings, VDIGuestDef\ <br>

```
        Required?                    true
```

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

<br>

### INPUTS

-none-

### OUTPUTS

-none-

### EXAMPLES

\
\&#xNAN;**---------- EXAMPLE 1 ----------**\
\
Add-RASImageOptimizationRegistry -Id 30 -ObjType RDS -Action Add -RegistryName "Name" -DWORDValue 1 -DisplayName HKEY\_test -HiveType HKEY\_CURRENT\_CONFIG -Path System\CurrentControlSet\Services\Disk -RegType REG\_SZ\
\
Adds the Image Optimization Registry of the Object Type 'RDS'.\ <br>

### RELATED LINKS

* [Get-RASImageOptimizationRegistry](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASImageOptimizationRegistry.html)
* [Remove-RASImageOptimizationRegistry](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Remove-RASImageOptimizationRegistry.html)
