3

I have a VM Windows server 2012 running in Google cloud which is not being able to RDP after accidentally updated in Firewall (of the VM).

Is it possible to update the VM's firewall from GCP console ?

Any idea to fix this is much appriciate. Thanks.

1 Answer 1

4


According to Google documentation, you can connect to your server via PSESSION.
First, You need to open port 5986 from your GCP Firewall.


Then Open Powershell on your local computer and type in this command:

Enter-PSSession -ComputerName [EXTERNAL_IP_ADDRESS] -UseSSL -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck) -Credential $credentials


If the port is blocked from your windows firewall, then you can try accessing CMD from Serial Console.
Instructions Available here


enter image description here


After you have access to your CMD/Powershell, you can easily turn them off with this command:

netsh advfirewall set allprofiles state off


If all of above fails, you can try doing it through startup script: Documentation Here


Hope This helps,
Shahriar

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .