Can one set a variable via the command line ?
Nicholas Seman
I would like to set a PDQ Deploy variable via the command line and then access that variable by a deployment. Can a variable be set via the command line?
Thanks, Nick
0
Comments
That's a pretty general question I think it depends on the context of what you're trying to accomplish. But I have pretty general answer: You could write to a file and check it later. For example,
Then add a reboot step with a condition that depends if that file exists. Or if you need to read in the contents of the text file to retrieve a variable value you could use powershell,
You get the idea.
If you're looking to update an existing Custom Variable, the UpdateCustomVariable command was added a while back (I don't remember which version).