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

How to obtain verbose and debug log from powershell, without modifying code

$
0
0

Hello, 

I have the following issue: In a Xenapp citrix environment, i have published some applications that run a powershell scipt from the server. This powershell script run an executable. Normally, uses connect and can start the program but sometimes it fails but nothing is written to the Event log and no information is logged. I would to have a extensive debug log of what happens when the user run this command, having a debug log (verbose) of the powershell scripts that run on the server. Is there any that can be added to the powershell command line  (that runs from Citrix command line console) to get the extensive debug log without altering the powershell code??

The command is:

powershell.exe -file C:\GTS\appname\foldernam\myscript.ps1   ANY PARAMETER?

Please help

Thanks in advance


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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