< Back
Remove-HostFileEntry
Post
NAME Remove-HostFileEntry
SYNOPSIS
Removes an entry from the HOSTS file
SYNTAX
Remove-HostFileEntry [-hostName] <String> [-ipAddress <String>] [<CommonParameters>]
DESCRIPTION
Updates the HOSTS file to remove a line mapping the given host name to the given IP address
PARAMETERS
-hostName <String>
The host name to remove
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ipAddress <String>
The IP address to remove
Required? false
Position? named
Default value 127.0.0.1
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
RELATED LINKS
SYNOPSIS
Removes an entry from the HOSTS file
SYNTAX
Remove-HostFileEntry [-hostName] <String> [-ipAddress <String>] [<CommonParameters>]
DESCRIPTION
Updates the HOSTS file to remove a line mapping the given host name to the given IP address
PARAMETERS
-hostName <String>
The host name to remove
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ipAddress <String>
The IP address to remove
Required? false
Position? named
Default value 127.0.0.1
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
RELATED LINKS