NAME

Copy-HPOVProfile

SYNOPSIS

Copy a Server Profile.

SYNTAX

Copy-HPOVProfile [-SourceName] <Object> [[-DestinationName] <String>] [[-assign] <Object>] [<CommonParameters>]

DESCRIPTION

This cmdlet will copy a source Server Profile to a new instance You can assign the copy to an existing Server Device, or specify 'unassigned'.

PARAMETERS

-SourceName <Object>
Alias (‘sname’)
The name of the source server profile to be copied.
Required? true
Position? 1
Default value <none>     
Accept pipeline input? true (ByValue)
Accept wildcard characters?   false
-DestinationName <String>
Alias (‘dname’)
The name of the destination server profile that will be created. If omitted, the new name will have "Copy of " prefixed to the source name.
Required? false
Position? 2
Default value <none>           
Accept pipeline input? false
Accept wildcard characters?   false
-assign <Object>
The name, URI, or object of the target server to assign the new profile to. If omitted, profile will be 'unassigned'
Required? false
Position? 3
Default value unassigned     
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 (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

System.Management.Automation.PSCustomObject

System.String

OUTPUTS

System.Management.Automation.PSCustomObject

Profile Create async task

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

PS C:\> Copy-HPOVProfile "Profile 1"
Copy "Profile 1" to a new Server Profile that is unassigned and named "Copy of Profile 1".

-------------------------- EXAMPLE 2 --------------------------

PS C:\> Copy-HPOVProfile "Profile 1" "Profile 2"
Copy "Profile 1" to a new Server Profile that is unassigned and named "Profile 2".
-------------------------- EXAMPLE 3 --------------------------

PS C:\> Copy-HPOVProfile "Profile 1" "Profile 2" -assign "Encl1, Bay 9"
Copy "Profile 1" to a new Server Profile that is assigned to "Encl1, Bay 9" named "Profile 2".
-------------------------- EXAMPLE 4 --------------------------

PS C:\> Get-HPOVProfile "Profile 1" | Copy-HPOVProfile
Use the Get-HPOVProfile CMDLET and pipe to Copy-HPOVProfile, where the copied profile name will be "Copy of Profile 1" and unassigned.
-------------------------- EXAMPLE 5 --------------------------

PS C:\> 11..16 | % { Copy-HPOVProfile "Profile Template" "Profile $_" "Encl1, bay $_" }
Copy 5 Server Profiles from "Profile Template" that will be assigned to bays 11 - 16 of Encl1.

Last edited Feb 8, 2014 at 4:06 AM by ChrisLynchHP, version 3