I am not sure what I was doing the other day, but I just ran Howards script to enumerate all properties and added a line to display the value of each. For LoginHours a line of 21 bytes was displayed, which is the correct setting for this property, eg 24x7 is represented as:

ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

This can be converted to a bit stream using the ASC() function.

I don't seem to be able to set the property in this manner, but I can read it OK.

This has reduced my original script execution time from nearly 2 hours to 6 minutes! [Smile]