Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Turn Off Windows Firewall from GCP Console or Gcloud

Do we have any means to turn off windows firewall entirely using the GCP console? like using metadata key value pair or other means?

Solved Solved
2 2 1,844
1 ACCEPTED SOLUTION

By turning off the Windows firewall, do you mean that you have created a GCP Compute Engine (VM) that is running a Windows release and within that Windows OS instance the Windows firewall is active and what you want to do is disable the firewall components within the OS running in the Compute Engine?

If yes, then what you would want to do is examine the Compute Engine "startup commands" documented here ... the thinking being that you can define some commands that will execute when the Compute Engine boots that might be able to alter the operation of the Windows environment.


View solution in original post

2 REPLIES 2

By turning off the Windows firewall, do you mean that you have created a GCP Compute Engine (VM) that is running a Windows release and within that Windows OS instance the Windows firewall is active and what you want to do is disable the firewall components within the OS running in the Compute Engine?

If yes, then what you would want to do is examine the Compute Engine "startup commands" documented here ... the thinking being that you can define some commands that will execute when the Compute Engine boots that might be able to alter the operation of the Windows environment.


Hi, @kolban. This works well with me. I achieved what I needed using the startup scripts. Thank you!