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
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