< Back
Export-GCHostsFile
Post
NAME Export-GCHostsFile
SYNOPSIS
Copies the hosts file to the path specified.
SYNTAX
Export-GCHostsFile [-Path] <String> [[-Force]] [<CommonParameters>]
DESCRIPTION
This is nothing more than an easy way of getting a copy
of the hosts file. Use it to create a backup of the current
hosts file before making changes.
Type 'Get-Help Export-GCHostsFile -Online' for extra information.
PARAMETERS
-Path <String>
The destination path to export the existing hosts file.
If the destination is directory then the resulting file will
be named the 'hosts' file.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Prevents the confirmation dialog if the destination file
already exists.
Required? false
Position? 2
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
System.Int32
RELATED LINKS
SYNOPSIS
Copies the hosts file to the path specified.
SYNTAX
Export-GCHostsFile [-Path] <String> [[-Force]] [<CommonParameters>]
DESCRIPTION
This is nothing more than an easy way of getting a copy
of the hosts file. Use it to create a backup of the current
hosts file before making changes.
Type 'Get-Help Export-GCHostsFile -Online' for extra information.
PARAMETERS
-Path <String>
The destination path to export the existing hosts file.
If the destination is directory then the resulting file will
be named the 'hosts' file.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Prevents the confirmation dialog if the destination file
already exists.
Required? false
Position? 2
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
System.Int32
RELATED LINKS