Forum Discussion

Sandesh_Gowda777's avatar
Sandesh_Gowda777
Copper Contributor
Jan 19, 2020
Solved

Power Shell script

Hi All,
I have requirement to automate and get all the running services details on different remote computers in one go,how it can be achieved this using power shell scripting.
All the remote computers have same user credentials

Please help.
Below are the steps I tried and I am stuck in
Enter-pssession -computername qwerty -credential
after above command ,how can I pass next command to be running on a remote machine from the script file .ps1

Resources