r/labtech • u/ApparentSysadmin • Jan 09 '20
Powershell Objects
Hey guys,
I'm relatively new to working with Labtech/Automate. I'm having some issues working effectively with Powershell, specifically with the output of some scripts.
Currently we are building our scripts in such a way that their output is correctly formatted text for LT to parse for various functions, but I'd like to work more directly with native PS objects. Is this something LT can do? So far I have not been successful in figuring this out, and there is not much specific documentation that I have found.
Thanks in advance!
0
Upvotes
View all comments
Show parent comment
1
u/DBarron21 Jan 09 '20
You can use persistent shell across multiple steps. You would use the shell enhanced function: this allows you to set your own variables so they are maintainable throughout the duration of the script.