Create a virtual Windows workstation Stay organized with collections Save and categorize content based on your preferences.
This tutorial shows how to create a virtual Windows workstation runningWindows Server 2022 with avirtual display.A virtual display device is useful when applications on your virtual machine (VM)instances require a display device, but don't require the full power or cost of aGPU.
For information about other types of virtual workstations, including Linux, seeAbout creating a virtual workstation.
Note: This solution is not suitable for graphically intensive applications thatrequire hardware graphics acceleration. For information about the typesof virtual workstations that you can create on Google Cloud, seeCreating a virtual workstation.After you create the virtual workstation, you learn how to remotely access itusingHP Anyware(formerly Teradici CAS), usingPC-over-IP (PCoIP®)technology, a remote desktop protocol widely used in the media andentertainment, game development, architecture, and engineering industries. PCoIPoffers features essential to these types of workloads, such as color accuracy,support for multiple monitors, lossless display, and tablet pressure sensitivity.
This tutorial assumes you are familiar with Microsoft Windows and the PowerShellcommand line.
Objectives
- Create a Compute Engine VM. This VM serves as the foundation for a virtualworkstation.
- Install HP Anyware software on the virtual workstation.
- Connect to the virtual workstation using a PCoIP software client.
Costs
This tutorial uses the following billable components ofGoogle Cloud:
You can use thepricing calculator to generate a cost estimate based on your projected usage.
The resources that make up the virtual workstation and the factors that affectcost in this tutorial are:
- 4 vCPUs, 16 GB RAME2 standard machine type
- Windows licensing
- 50-GB SSDbalanced boot disk
- Internet outbound data transfer costs
Internet data transfer represents data that streams from your virtual workstation toyour local display client and is billed atinternet outbound data transfer costs.Variables that affect data transfer during a PCoIP session are bandwidth, screenresolution, number of display monitors, applications used, and the type ofactivity on each monitor. The HP AnywareSession Planning Guidecan help you understand different workload requirements.
Note: Costs differ depending on region and connection method. Theseestimated costs are based on connection over the public internet, with resourceslocated in theus-central1 region (Iowa).Before you begin
This tutorial uses the Google Cloud CLI, which you can run from aCloud Shell instance launched from theGoogle Cloud console.If you want to use gcloud CLI on your local workstation, install theGoogle Cloud CLI.The tutorial shows you how to run commands in Cloud Shell; if youuse the gcloud CLI on your workstation, adjust the instructionsaccordingly.
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
- Create a project: To create a project, you need the Project Creator role (
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission.Learn how to grant roles.
Verify that billing is enabled for your Google Cloud project.
Enable the Compute Engine API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission.Learn how to grant roles.In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
- Create a project: To create a project, you need the Project Creator role (
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission.Learn how to grant roles.
Verify that billing is enabled for your Google Cloud project.
Enable the Compute Engine API.
Roles required to enable APIs
To enable APIs, you need the Service Usage Admin IAM role (
roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enablepermission.Learn how to grant roles.
In addition, make sure you have the following:
- AGoogle Chromebrowser to access the Google Cloud console.
- The latestPCoIP Client softwarefor Windows, Mac, or Linux to access the virtual workstation.
- An account onhelp.teradici.comto download the HP Anyware software. Account registration is free.
- An HP Anyware software license. You canrequest a trial license,or contact your HP representative and ask for a trial registrationcode to use for this virtual workstation.
Architecture
The following diagram shows the components that are used in this tutorial todeploy a single virtual workstation. Optional components shown in the diagraminclude different ways to connect to your virtual workstation, shared storage,an additional VM for serving third-party licenses, and additionalinfrastructure representing a render or compute farm.
Choose a region
An important factor when you deploy a virtual workstation is the latency betweenyour location and the VM you create. The lower the latency, the better theexperience. Therefore, you want to place your VM in a region and zonethat's geographically closest to you.
Create the virtual workstation
In Cloud Shell, create the Compute Engine virtual workstation instance:
gcloud compute instances createVM_NAME \ --zone=ZONE \ --machine-type=e2-standard-4 \ --enable-display-device \ --image-project=windows-cloud \ --image-family=windows-2022 \ --boot-disk-size=50 \ --boot-disk-type=pd-balanced \ --network=default
Replace the following:
VM_NAME: a name for your VM instance.ZONE: the zone that's geographically closestto you. An important factor when you deploy a virtual workstation isthe latency between your location and the VM you create. The lower thelatency, the better the experience. For information about the geographicallocation of zones, seeAvailable regions and zones.
After the virtual workstation is created, the VM status is displayed. Theoutput looks similar to the following:
NAME: test-workstationZONE: us-west1-bMACHINE_TYPE: e2-standard-4PREEMPTIBLE:INTERNAL_IP: 10.138.XX.XXXEXTERNAL_IP: XX.XXX.XXX.XXXSTATUS: RUNNING
Note the external IP address, you need it later in the tutorial.
Create a Windows password
You use RDP to access the Windows virtual workstation in order to install theHP Anyware Standard Agent host software. To sign in with RDP, you need to createa Windows password for your user.
In Cloud Shell, run the following command:
gcloud compute reset-windows-passwordVM_NAME
Replace
VM_NAMEwith the name of the VM to change thepassword for.Review the information in the confirmation prompt:
This command creates an account and sets an initial password for theuser [username] if the account does not already exist.If the account already exists, resetting the password can cause theLOSS OF ENCRYPTED DATA secured with the current password, includingfiles and stored passwords.For more information, see:https://cloud.google.com/compute/docs/instances/windows/generating-credentials#consoleWould you like to set or reset the password for [username] (Y/n)?
After confirming the previous prompt, review the confirmation of newcredentials, which appears as follows:
Resetting and retrieving password for [username] on [instance-name]Updated [https://www.googleapis.com/compute/v1/projects/project-name/zones/zone/instances/instance-name].ip_address: ip-addresspassword: passwordusername: username
You can nowconnect to the VM instance by using the new credentials.
Sign in to your virtual workstation
After you create the virtual workstation, sign into the machine so you canconfigure it.
- On your local workstation, use your RDP client to connect toyour virtual workstation using its external IP address.
- When you're prompted to enter your credentials, enter the username andpassword you generated earlier.
- If you see a certificate warning, ignore it and clickContinue.
The virtual workstation desktop appears. Close the Windows Server Manager afterit finishes launching.
Install Google Chrome
The next step is to install Chrome on the VM instance.
- In your RDP session, click theStart button on the Windows taskbar,type
Windows PowerShell. - Right-click on Windows PowerShell and selectRun as administrator.
At the PowerShell prompt, enable HTTPS requests:
[Net.ServicePointManager]::SecurityProtocol="tls12, tls11, tls"Download and run the Chrome installer:
$installer="$env:TEMP\chrome_installer.exe";Write-Host'Downloading Chrome.'Invoke-WebRequest`'https://dl.google.com/chrome/install/latest/chrome_installer.exe'`-OutFile$installerWrite-Host'Installing Chrome.'&$installer/silent/install|Out-DefaultRemove-Item$installerWhen the command has completed, close PowerShell.
Install HP Anyware software
HP Anyware software provides an agent that runs on your virtualworkstation, delivering the desktop to your hardware or software client.
- On the Windows instance, open Google Chrome and go to thePCoIP Hosts sectionon the HP Anyware support page.
- DownloadStandard Agent for Windows.
- If not already logged in, clickLog in to download.
- ClickDownloads and scripts.
- Complete the agent installation process and choose the option to run thedownloaded Standard Agent executable. Follow the prompts to install theStandard Agent in the default location.
Register the Anyware Standard Agent
When the installation process is complete, you're prompted for a registrationcode.
In theLicense Registration window, enter the registration code youreceived during the trial sign-up process.
Note: The registration code provided to you by HP Teradici is in the formABCDEFGHIJKL@0123-4567-89AB-CDEF.After you've entered the registration code, reboot the Windows instance.
Create a firewall rule
The PCoIP client communicates with your virtual workstation using several ports.You must set firewall rules that allow traffic to your virtual workstation.
In Cloud Shell (not on the virtual workstation), create a firewallrule that opens the required ports:
Note: This firewall rule allows traffic from anywhere on the internet toaccess your VM instance. Always followbest practices for firewall rules to restricttraffic to your instance.gcloud compute firewall-rules create allow-pcoip \ --action=ALLOW \ --rules=tcp:443,tcp:4172,udp:4172 \ --source-ranges=0.0.0.0/0
Sign in to your virtual workstation using the PCoIP client
On your local computer, go to thePCoIP Clients sectionon theHP Anyware support page,and then download, install, and launchthe PCoIP Software Client application for your operating system.
In theHost Address or Registration Code field, enter the externalIP address of your virtual workstation. If you want, you can enter a name forthe connection.
Note: By default, PCoIP traffic is encrypted using AES-256.However, HP Anyware Software uses a self-signed certificatethat's issued by Teradici. This might trigger a verification warning when youconnect. You can remove this warning by creating and installing your owncustom security certificates.Or, you can suppress the warning by changing theclient security modefor your client OS. For the purposes of this tutorial, you can ignore this warning by clickingConnect Insecurely in the dialog.When you are connected, authenticate by entering the username andpassword that you created earlier for the virtual workstation.
In a few seconds, your Windows desktop appears.
Activate audio on your virtual workstation
To activate audio on your virtual workstation, enable theTeradiciVirtual Audio Driver as the default playback device.
On the Windows VM, click the Start button on the Windows taskbar andtype
mmsys.cplto open the Sound control panel andinitialize the Teradici Virtual Audio Driver.ClickYes. Windows verifies that the audio driver is working.
Test your virtual workstation
After you've deployed your virtual workstation, you can test performance andinteractivity using a number of tools:
- UseGoogle Chrome to browse your favorite sites or playYouTube videos.
- Install the TeradiciSession Statistics Viewerto examine bandwidth usage, latency, and other desktop streaming metrics.
- Learn more about configuring theTeradici Standard Agent for Windows.
- Install applications and test their behavior and performance.
You can also learn more aboutPCoIP performance optimizationbased on your workload.
Clean up
To avoid incurring charges to your Google Cloud account for the resources used in this tutorial, either delete the project that contains the resources, or keep the project and delete the individual resources.
Stop your virtual workstation
Stopped virtual workstations incurcosts for persistent disk usage, but they can be restarted at any time. To stop your virtual workstation,run the following command:
gcloud compute instances stopVM_NAME
Delete all the components
Delete the project
What's next
- Learn how tocreate a virtual Linux workstation.
- Learn more aboutHP Anyware software.
- Learn more about howPCoIPdiffers from other remote desktop software.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-09 UTC.