powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Export-VMHostProfile



NAME
Export-VMHostProfile

SYNOPSIS
Exports the specified host profile to a file.

SYNTAX
Export-VMHostProfile [-FilePath] [-Profile] [-Force] [-Server ] [ rs>]


DESCRIPTION
Exports the specified host profile to a file that is in the VMware profile format (.vpf). If the value of the -Forc
e parameter is $false and the destination file exists or the target parent directory does not exist, a terminating
error is generated. If the value of the Force parameter is $true, the existing destination file is overwritten and
directories to complete the specified file path are created.


PARAMETERS
-FilePath
Specify the path to the file where you want to export the host profile.

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Profile
Specify the host profile you want to export.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Force
Indicate whether the cmdlet overwrites the existing destination files and creates directories to complete the s
pecified file path.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
System.IO.FileInfo


NOTES




-------------- Example 1 --------------

C:\PS>$profile = (Get-VMHostProfile -Name Profile )[0]

Export-VMHostProfile -FilePath export.prf -Profile $profile -Force


Exports the selected host profile to the export.prf file.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Export-VMHostProfile.html
Apply-VMHostProfile
Get-VMHostProfile
Import-VMHostProfile
Remove-VMHostProfile
Set-VMHostProfile
Test-VMHostProfileCompliance
New-VMHostProfile