How to get an variable output from remote pssession

Question:

I have a script to get virtual harddisk info from vmm, im executing it remotely from a server, currently im unable to get the variable value outside of the pssession in the local host, could you please help me out with achieveing the same.

as you can see both the variable output’s give null value, im unable to retain the values

Answer:

This example gets listing from remote computer’s C drive and assigns it into a local variable. So tune your VMM script accordingly.

Source:

How to get an variable output from remote pssession by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply