Modified wsmancli enumerate and enumerate_keys function