Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Bug Powershell/PSExec - Missing Information outside ISE

$
0
0
I´m affected of this Bug in Powershell/PSExec

http://stackoverflow.com/questions/22593651/powershell-psexec-job

Executing powershell script and execute for example ping/tracert/iperf
via psexec on remote-hosts is working very well. 

In ISE I see all the Information I expect. But I´m the interesting information is missing outside ISE.

For example in ISE:

#####################################
PS C:\Scripts> .\tracert.ps1 -ComputerName REMOTEHOST -target TARGETHOST
PsExec v2.1 - Execute processes remotely
Copyright (C) 2001-2013 Mark Russinovich
Sysinternals - www.sysinternals.com

Starting tracert.exe on REMOTEHOST...REMOTEHOST...
tracert.exe exited on REMOTEHOST with error code 0.
From REMOTEHOST to TARGETHOST <br>
Routenverfolgung zu TARGETHOST [200.100.100.1]  über maximal 30 Abschnitte:
  1    74 ms    <1 ms    <1 ms  100.100.100.5
  2    <1 ms    <1 ms    <1 ms  Router1 [120.12.245.101]
  3     1 ms    <1 ms    <1 ms  Router2 [130.12.246.101]
  4     1 ms    <1 ms    <1 ms  Router3 [150.12.247.101]
  5     1 ms    <1 ms    <1 ms  TARGETHOST  [200.100.100.1]
Ablaufverfolgung beendet.
#####################################


Fine? NO!!!

Write to File, Print,execute the Script via IIS/PHP everything fails!
Only this Information outside ISE:

#####################################
C:\scripts\tracert.ps1 -ComputerName REMOTEHOST  -target TARGETHOST
From REMOTEHOST  to TARGETHOST 

Routenverfolgung zu TARGETHOST [200.100.100.1]  über maximal 30 Abschnitte:

#####################################

PLS HELP!!!
Invoke-Command cannot be used here


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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