Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell Script activity basic Query

$
0
0

Hello,

        Before asking my question, Let me introduce myself.I'm very Poor @ Scripting and PowerShell related stuffs. I have a very basic Query in PowerShell, I have to execute some of the PowerShell command (Hyper-V, Lync etc..) in target machine using Runbook activity.

Commands:

  1.   Get-VM (Hyper-V)
  2.   Get-CSwindowsservice (Lync)

When I'm executing the below Command from local PowerShell windows its listing all the services & VM's along with the status.

Questions:

01.How do I use the same commands within PowerShell activity - I need the Format

02. How to get the Service & VM status for next activity

03. Which is the best activity for this requirement (Run program, .Net script or Powershell IP)

Regards,
Julie

 

 


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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