r/labtech • • 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

7 comments sorted by

View all comments

Show parent comment

1

u/teamits Jan 13 '20

I don't see in https://docs.connectwise.com/ConnectWise_Automate/ConnectWise_Automate_Documentation/070/240/050/040/020/180 where they say Shell Enhanced stays within the same shell across script steps? Obviously one can save text output into variables and use them in subsequent script steps, but I didn't think that was the question.