I am trying to write a utility as a batch file that, among other things, adds a user to the "Deny logon locally" local security policy. This batch file will be used on hundreds of independent computers (not on a domain and aren't even on the same network).
I assumed one of the following were my options, but perhaps there's one I haven't thought of.
A command line utility similar to
net.exe
which can modify local security policy.A VBScript sample to do the same.
Write my own using some WMI or Win32 calls. I'd rather not do this one if I don't have to.