0 Replies Latest reply on Jan 3, 2018 3:56 AM by Sharat Puranam

    Powershell version check using Blade logic job

      Share This:

      Hello All,


      I am trying to write script to check the powershell version in remote servers with below code. i need the out put of the commands to be stored in one target server. the job is executing without any error, but i am not able to get the result from all the servers. please find the below script that i am trying to fit in BL job and kindly advise on this.


      powershell.exe -executionpolicy unrestricted -command $env:COMPUTERNAME >> \\target-server\D$\Temp\output.txt

      powershell.exe -executionpolicy unrestricted -command $PSVersionTable >> \\target-server\D$\Temp\output.txt