ok bear with me, work with me here. user has a kix script (with above code) setup in run key. user logs in with cached credentials, script starts - code indeed does work as advertised. I rest my case.