I think this returncode issue is an issue with python and not asadmin as when I execute asadmin.bat from the cmdline and it fails and I echo %errorlevel% it returns 1.
So I need to investigate that.
I still would appreciate any advice from someone who's automated processes like these.
Attached is an example python script to check success of a list-system-properties command. If I enter the incorrect password, it still returns a 0 returncode.
[Message sent by forum member 'areplogle' (areplogle)]
http://forums.java.net/jive/thread.jspa?messageID=321944