Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimize the output of pscmd
#1
Powershell syntax is simple, has been updated to 6.x, and the function is getting stronger!It can also call libraries supported by .net

I found a situation, using the pscmd function, after executing the code, the output results always have some fixed, extra characters, very regular, is there a way to display only the results?

Maybe already have a solution, just I don't know, Thanks in advance

extra characters:

first line:
#< CLIXML

last line:
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>

There is also an example here:
http://www.quickmacros.com/forum/showthr...8#pid33538

Macro PS
Code:
Copy      Help
str code=
;get-process
PsCmd code "" _s
out _s


Messages In This Thread
Optimize the output of pscmd - by win - 05-05-2019, 11:48 PM
RE: Optimize the output of pscmd - by Gintaras - 05-06-2019, 03:43 AM
RE: Optimize the output of pscmd - by Gintaras - 05-06-2019, 04:44 AM
RE: Optimize the output of pscmd - by win - 05-06-2019, 04:57 AM
RE: Optimize the output of pscmd - by Gintaras - 05-06-2019, 06:15 AM
RE: Optimize the output of pscmd - by win - 05-06-2019, 07:21 AM
RE: Optimize the output of pscmd - by Gintaras - 05-06-2019, 07:35 AM
RE: Optimize the output of pscmd - by win - 05-06-2019, 07:41 AM
RE: Optimize the output of pscmd - by Gintaras - 05-06-2019, 07:55 AM
RE: Optimize the output of pscmd - by win - 05-06-2019, 08:05 AM
RE: Optimize the output of pscmd - by Gintaras - 05-06-2019, 08:12 AM
RE: Optimize the output of pscmd - by win - 05-06-2019, 08:15 AM
RE: Optimize the output of pscmd - by Gintaras - 05-06-2019, 08:26 AM
RE: Optimize the output of pscmd - by win - 05-06-2019, 09:02 AM
RE: Optimize the output of pscmd - by win - 05-07-2019, 11:48 PM
RE: Optimize the output of pscmd - by win - 05-08-2019, 03:54 AM
RE: Optimize the output of pscmd - by Gintaras - 05-08-2019, 04:25 AM
RE: Optimize the output of pscmd - by win - 05-08-2019, 05:42 AM
RE: Optimize the output of pscmd - by win - 05-08-2019, 09:37 AM
RE: Optimize the output of pscmd - by win - 05-08-2019, 12:51 PM
RE: Optimize the output of pscmd - by Gintaras - 05-08-2019, 01:05 PM
RE: Optimize the output of pscmd - by win - 05-08-2019, 01:17 PM
RE: Optimize the output of pscmd - by Kevin - 05-09-2019, 01:19 AM
RE: Optimize the output of pscmd - by win - 05-09-2019, 01:36 AM
RE: Optimize the output of pscmd - by Kevin - 05-09-2019, 01:40 AM
RE: Optimize the output of pscmd - by win - 05-09-2019, 01:43 AM

Forum Jump:


Users browsing this thread: 9 Guest(s)