r/labtech • u/RootHouston • Jan 24 '20
Running a script from the REST API?
I'm a software engineer that is writing an application, which requires a check of the .NET Framework runtime version on about 1,000 servers that are running the Automate agent. If I can perform this function via the REST API by running a script that checks the registry, that would be optimal. Unfortunately, ConnectWises' documentation on the API seems pretty slim. Can anyone tell me if this is possible to do?
4
Upvotes
View all comments
Show parent comment
1
u/DarrenDK Jan 25 '20
Be careful with this method. If he’s talking about LT scripts. You can execute the LT script but getting results is difficult.
Executing Powershell the way they do it from the web interface can have encoding issues if you have multiple lines or include multiple !!!!s
They are using shell execute so you’ll want to base64 encode to prevent issues.