I'm wondering if there's a way to enable the guest account via script on Windows 7 Pro, so that when I deploy PCs on a P2P network, I can have this be an option for my setup script (I don't want to reinstall a billion different drivers
, so I'm avoiding an install image). It wouldn't be hard to just do it manually, or have AutoIt do the work via simulated user input, but I'd like to find out if it's doable.
So far I have this much:
net user guest /active:yes /* This will activate the account, but not display it on the login screen */
I don't see anything in SpecialAccounts\Userlist or Secpol.msc that would prevent logon, and I have run procmon only to see LSASS do a bunch of stuff on the machine's secure hives (HKLM\SECURITY, for example). Replicating the registry changes LSASS made locked me out of the computer and forced a reboot to fix (I messed with the permissions on my home PC's registry for the sake of finding out; also tried running a script as an elevated service.).