Export (0) Print
Expand All
Expand Minimize

Set-CMVhd

System Center 2012 R2

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

Set-CMVhd

Modifies VHD images.

Syntax

Parameter Set: SetById
Set-CMVhd -PackageID <String[]> [-Description <String> ] [-DistributionPointServerNames <String[]> ] [-NewName <String> ] [-Path <String> ] [-SecurityScopeAction <SecurityScopeActionType> {AddMembership | RemoveMembership} ] [-SecurityScopeName <String> ] [-TaskSequencePackageId <String> ] [-Version <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetByName
Set-CMVhd -Name <String[]> [-Description <String> ] [-DistributionPointServerNames <String[]> ] [-NewName <String> ] [-Path <String> ] [-SecurityScopeAction <SecurityScopeActionType> {AddMembership | RemoveMembership} ] [-SecurityScopeName <String> ] [-TaskSequencePackageId <String> ] [-Version <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetByValue
Set-CMVhd -InputObject <IResultObject> [-Description <String> ] [-DistributionPointServerNames <String[]> ] [-NewName <String> ] [-Path <String> ] [-SecurityScopeAction <SecurityScopeActionType> {AddMembership | RemoveMembership} ] [-SecurityScopeName <String> ] [-TaskSequencePackageId <String> ] [-Version <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetSecurityScopeById
Set-CMVhd -SecuredScopeNames <String[]> [-Description <String> ] [-DistributionPointServerNames <String[]> ] [-NewName <String> ] [-PackageID <String[]> ] [-Path <String> ] [-SecurityScopeAction <SecurityScopeActionType> {AddMembership | RemoveMembership} ] [-SecurityScopeName <String> ] [-TaskSequencePackageId <String> ] [-Version <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetSecurityScopeByName
Set-CMVhd -SecuredScopeNames <String[]> [-Description <String> ] [-DistributionPointServerNames <String[]> ] [-Name <String[]> ] [-NewName <String> ] [-Path <String> ] [-SecurityScopeAction <SecurityScopeActionType> {AddMembership | RemoveMembership} ] [-SecurityScopeName <String> ] [-TaskSequencePackageId <String> ] [-Version <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Set-CMVhd cmdlet modifies one or more virtual hard disk (VHD) images that were created through the operating system deployment feature.

Parameters

-Description<String>

Specifies a description for the VHD.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DistributionPointServerNames<String[]>

Specifies an array of names of distribution point servers, which contain content that the task sequence requires.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<IResultObject>

Specifies a VHD image. To obtain a VHD image, use the Get-CMVhd cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

Specifies an array of names of VHD images.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-NewName<String>

Specifies a new name for the VHD image.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PackageID<String[]>

Specifies an array of IDs of packages.


Aliases

Id

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Path<String>

Specifies a path for the VHD image.


Aliases

PackageSourcePath

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SecuredScopeNames<String[]>

Specifies an array of names of security scopes. A security scope name can be Default or the name of a custom-created security scope.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SecurityScopeAction<SecurityScopeActionType>

Specifies an action for a security scope. Valid values are: AddMembership and RemoveMembership.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SecurityScopeName<String>

Specifies the name of a security scope. A security scope name can be Default or the name of a custom security scope.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-TaskSequencePackageId<String>

Specifies an ID for a task sequence package.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Version<String>

Specifies a version for the VHD. Use any string.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


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, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft