Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

run a program remotely in windows vm via powershell

$
0
0

Two vm A and B, both windows azure vm (separate subscription, not in same domain/virtual network).

What I want to do is to control vm B from vm A, particular, I'd like to do in vm A, start vm B, run a program in vm B, once it is done, stop vm B.

I've checked the powershell azure module and I can start/stop vm B from powershell in vm A, however I didn't figure how to run a program in vm B via powershell script in vm A.

Anyone knows how to achieve this? Appreciate any thoughts/suggestion.

Thanks


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>