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.
Best Answer
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:
If the port is blocked from your windows firewall, then you can try accessing CMD from Serial Console.
Instructions Available here
After you have access to your CMD/Powershell, you can easily turn them off with this command:
If all of above fails, you can try doing it through startup script: Documentation Here
Hope This helps,
Shahriar