Windows VM powershell execute script support for GCPThis article is to explain how to configure and execute Windows PowerShell scripts in Google Cloud Platform Prerequisites On a Windows MID Server, execute the attached PowerShell script (winrmenable.ps1.zip). Note: Ensure that the provisioning VM has WinRM HTTP and WinRM HTTPS ports allowed in the firewall. If not, execute the following command after provisioning: New-NetFirewallRule -DisplayName 'PSremoting Inbound' -Profile @('Domain', 'Private', 'Public') -Direction Inbound -Action Allow -Protocol TCP -LocalPort @('5985', '5986') Procedure Unzip the attached file: ModExpoExtractor.jar.zipBefore you add the jar file: Navigate to System Properties > Security and then set MIME to be inactive by selecting No.Create a new MID Server Jar File and attached ModExpoExtractor.jar.Extract the WindowsPowershellGCPUpdateSet.zipImport the update sets in the following order: GCPWindowsKeySupport – CAPI scope Regenerate Google Compute API – GCP scope GCPResourceBlockUpdates – GCP scopeAfter the import processes succeed, click Preview Update Set.Commit the update sets. The state changes from Updated to Committed.Provision a Windows VM using a GDM template.After provisioning, create a key or identify a key that is listed in the Cloud Management User Portal. Notes: -- InfuseKey can push only one user key. -- InfuseKey cannot push a Management key.Use the Virtual Machine Store Extension Interface.InfuseKey Day-2 operation to add the key to the VM. On the Cloud Admin Portal, Click Design > Cloud Scripts.Click Cloud Script Template and add the PowerShell script. Create a cloud script that should map to cloud script template.On the Cloud User Portal, test by executing the PowerShell script using the Virtual Machine Store Extension Interface.ExecuteScript Day-2 operation.