< Back
New-VMHostProfile
Post
NAME New-VMHostProfile
SYNOPSIS
This cmdlet creates a new host profile based on a reference host.
SYNTAX
New-VMHostProfile [-Name] <String> [-ReferenceHost] <VMHost> [-CompatibilityMode] [-Description <String>] [-Server
<VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
This cmdlet creates a new host profile based on a reference host.
PARAMETERS
-CompatibilityMode [<SwitchParameter>]
If you are connected to a vCenter Server/ESX 5.0 or later, use this parameter to indicate that you want the
new profile to be compatible with hosts running ESX/vCenter Server versions earlier than 5.0.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Description <String>
Provides a description for the new host profile.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies a name for the new host profile.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ReferenceHost <VMHost>
Specifies the reference host, on which the new virtual machine host profile is based.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-Server <VIServer[]>
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this
parameter, the command runs on the default servers. For more information about default servers, see the
description of Connect-VIServer.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-Confirm [<SwitchParameter>]
If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false,
the cmdlet runs without asking for user confirmation.
Required? false
Position? named
Default value $true
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The newly created VMHostProfile object
NOTES
-------------------------- Example 1 --------------------------
$h = Get-VMHost 10.23.134.133
New-VMHostProfile -Name testProfile -Description "This is my first test profile." -ReferenceHost $h
Creates a profile based on the virtual machine host with an IP address 10.23.134.133.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... ofile.html
Invoke-VMHostProfile
Export-VMHostProfile
Get-VMHostProfile
Import-VMHostProfile
Remove-VMHostProfile
Set-VMHostProfile
Test-VMHostProfileCompliance
SYNOPSIS
This cmdlet creates a new host profile based on a reference host.
SYNTAX
New-VMHostProfile [-Name] <String> [-ReferenceHost] <VMHost> [-CompatibilityMode] [-Description <String>] [-Server
<VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
This cmdlet creates a new host profile based on a reference host.
PARAMETERS
-CompatibilityMode [<SwitchParameter>]
If you are connected to a vCenter Server/ESX 5.0 or later, use this parameter to indicate that you want the
new profile to be compatible with hosts running ESX/vCenter Server versions earlier than 5.0.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Description <String>
Provides a description for the new host profile.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies a name for the new host profile.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ReferenceHost <VMHost>
Specifies the reference host, on which the new virtual machine host profile is based.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-Server <VIServer[]>
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this
parameter, the command runs on the default servers. For more information about default servers, see the
description of Connect-VIServer.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-Confirm [<SwitchParameter>]
If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false,
the cmdlet runs without asking for user confirmation.
Required? false
Position? named
Default value $true
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
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 (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The newly created VMHostProfile object
NOTES
-------------------------- Example 1 --------------------------
$h = Get-VMHost 10.23.134.133
New-VMHostProfile -Name testProfile -Description "This is my first test profile." -ReferenceHost $h
Creates a profile based on the virtual machine host with an IP address 10.23.134.133.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... ofile.html
Invoke-VMHostProfile
Export-VMHostProfile
Get-VMHostProfile
Import-VMHostProfile
Remove-VMHostProfile
Set-VMHostProfile
Test-VMHostProfileCompliance