< Back

Open-GCHostsFile

Mon Jan 13, 2020 8:06 pm

NAME Open-GCHostsFile



SYNOPSIS

Opens the %SYSTEMROOT%\\System32\\drivers\\etc\\hosts file in notpade.exe.





SYNTAX

Open-GCHostsFile [[-Force]] [<CommonParameters>]





DESCRIPTION

A warning is displayed requiring you to press enter if the

PowerShell console is not running As Administrator.



Type 'Get-Help Open-GCHostsFile -Online' for extra information.





PARAMETERS

-Force [<SwitchParameter>]

Prevents both the display of the As Administrator console warning

and the requirement to press enter.



Required? false

Position? 1

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.String







RELATED LINKS