How to clean up a guest user under windows xp

Posted on

Using the shtasks utility create a task to run a clean script.

schtasks /create /tn limpieza /tr c:\limpieza.bat /sc onstart /ru System

Here is the limpieza.bat script:

RD /S /Q  “C:\Documents And Settings\Invitado”

If  you want an user to autologon check this info: http://support.microsoft.com/kb/315231

 

 

http://superuser.com/questions/340396/how-do-i-change-automatic-logon-via-script-or-command-line

 

 

REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d Invitado /f