< Back
Import-GCHostsFile
Post
NAME Import-GCHostsFile
SYNOPSIS
Overwrites the hosts file with the source file.
SYNTAX
Import-GCHostsFile [-Path] <String> [[-Force]] [<CommonParameters>]
DESCRIPTION
If the source file exists it will clobber the hosts file
by being coppied over the top of it.
Type 'Get-Help Import-GCHostsFile -Online' for extra information.
PARAMETERS
-Path <String>
The source path including file name to replace the
existing hosts file.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Prevents the confirmation dialog from being displayed.
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
Overwrites the hosts file with the source file.
SYNTAX
Import-GCHostsFile [-Path] <String> [[-Force]] [<CommonParameters>]
DESCRIPTION
If the source file exists it will clobber the hosts file
by being coppied over the top of it.
Type 'Get-Help Import-GCHostsFile -Online' for extra information.
PARAMETERS
-Path <String>
The source path including file name to replace the
existing hosts file.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force [<SwitchParameter>]
Prevents the confirmation dialog from being displayed.
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