I tried with below script in local machine to run remote powershell script
which is located in remote azure vm
.
I'm able to connect to azure remote vm
through powershell pssession
, but Invoke-Command
is not returning anything. Unable to run remote powershell script
.
I tried as below aswell
But -FilePath
trying to look into local machine D:
drive instead of remote azure vm D:
drive.
How to run remote azure vm powershell script which is located in remote azure vm D:
drive