Skip to content

Windows Server 2022

Objectives:

  • To have a Windows Server with RDP exposed to the internet

Go to cloud.google.com and login. Navigate to our SOC-Monitoring project.

Steps to create the Windows Server

  • Go to Compute Engine > VM Instances > Create Instance.
  • Name the instance (e.g. windows-server)
  • Choose Region: Pick a region. Preferably the same region on which our ELK server resides to avoid regional accessibility issues (I choose asia-east1 region and asia-east1-a zone)
  • Machine configuration: Select a machine type which won’t incur much cost (e.g., e2-medium with 2 vCPU and 4GB RAM).
  • OS and Storage: Choose Windows Server 2022 Datacenter as operating system with enough disk space (I chose a 60 GB SSD disk). (Full account activation is required to use Windows images in Google Compute Engine)
  • Networking: I’m not adding any additional firewall rules from here. No network tags as well. Under network interface let’s choose our VPC vpc-test-machines and select subnet vpc-test-machines-internal. Let’s choose a custom IP address (I choose 192.168.0.2. We cannot use 192.168.0.1 for our machines as it is already reserved for the gateway). I’ll leave the external IP address as Ephemeral.
  • Click Create to start our Windows server instance

My Windows instance config

ConfigurationValue
Instance Namewindows-server
Regionasia-east1
Zoneasia-east1-a
Machine Typee2-medium (2 vCPUs, 4 GB RAM)
Operating SystemWindows Server 2022 Datacenter
Storage60 GB SSD
Networkvpc-test-machines
Subnetvpc-test-machines-internal, range 192.168.0.0/24
Internal IP192.168.0.2
External IPEphemeral
Firewall RulesAs configured for the network
Network TagsNone

Navigate to:

VM instances > Choose our machine > Under Network interfaces > Network details > Click view details

Here we can check and make sure that our machine firewall rules are set properly and accepts RDP traffic from all over the internet.

To set up credentials for RDP connection into this machine, choose our machine instance again and Click Set Windows Password. It will allow us to set an username and it will generate a password for us. Let’s save the credentials somewhere to be used whenever necessary.

If we now use Remote Desktop Connection from our local windows machine (or we can also use third part clients), put in the public IP for our windows-server machine, and use the credentials we have generated, we’ll be able to access our windows server machine.

RDP connection successful

We have SUCCESSFULLY set up our Windows server 2022 with RDP exposed to the internet



© 2020-2025 Ucchas Muhury