简体   繁体   中英

What is the best way to run a script remotely on Windows VM instance?

For example, in Linux VM instances we can use gcloud beta ssh command to run commands remotely by downloading ssh keys using gcp credentials

Similarly, I am looking for running scripts on Windows VM instance remotely without doing RDP to an instance.

Can someone point to a solution for this problem?

If you have a Windows workstation with PowerShell, you can connect to your Windows Server instances through a remote PowerShell session. This process is similar to connecting to a Linux instance using SSH. Please review "Connecting to Windows instances using the PowerShell terminal"

https://cloud.google.com/compute/docs/instances/connecting-advanced#powershell

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM