Kieran is assuming a whole bunch of things about the configuration of the computer. It _might_ work against a local account but only if the local account is an admin - It won't work against a domain account - or at least, I'd be bloody surprised if it did since his code indicates a local resource though that is easy to change he won't have any rights to the domain account of a user in AD.
