Created
February 26, 2018 23:46
-
-
Save rchaganti/e635e5f90847780763fd61b6f6198863 to your computer and use it in GitHub Desktop.
firewallconfig.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Write-SerialPort ([string] $message) { | |
$port = new-Object System.IO.Ports.SerialPort COM1,9600,None,8,one | |
$port.open() | |
$port.WriteLine($message) | |
$port.Close() | |
} | |
Write-SerialPort ("Testing GCE Startup Script") | |
Set-NetFirewallRule -Name WINRM-HTTP-In-TCP-PUBLIC -RemoteAddress Any | |
Write-SerialPort ("Completed GCE Startup Script") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment