Has anyone else edited this to drop the default unmanage time. Most of the time we only need to unmanage for 30mins or less. I gave it a quick test and it seems to work but just curious to see if anyone else has done the same.
Change line -
now = new Date(now.getTime() + 24 * 60 * 60 * 1000);
now = new Date(now.getTime() + 30 * 60 * 1000);
Though im not sure if this setting will be retained when any update is applied and is probably totally unsupported.
There is another open thead related to this issue,
I have just tried your solution, and I can confirm that it works like a charm.. But, as you pointed out, it will most likely not survive an update, and will have to be re-done after that. But for now it is a nice workaround untill Solarwinds make an official change to address the issue. Nice work..