Hey all, this is my first post here, so thank you in advance for any assistance. I’m trying to merge a few commands into one but am having trouble. Is this even possible to merge all these into one command? I’ve tried braces, but it errored out. Here’s the working commands:
If you get errors you should share them here completely. Errors are an important language feature as they tell you what’s wrong and sometimes even what you should change.
And BTW: When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
I’m trying to make this work in with an RMM script and it’s a pain in the butt to try to get it all done with multiple lines because the RMM program kills the value of the variables from line to line, so I have to find a way to make it all work in one line. I’m working on trying to get about 80-ish machines seamlessly removed from a domain, their profiles converted (using ForensIT User Migration Wizard), and the joined to Azure AD, all through this RMM. It’s been a bit of a challenge, and this one-liner was the last struggle.
Yup. We’re using Kaseya, but we’re currently waiting for a call back from ConnectWise because we’re looking to look into another solution. We’ve had a lot of other issues with Kaseya scripting in general.