I have scripted NoSFS.bat to disable Simple File Sharing on Windows XP Professional. Used when deploying the Altiris Agent.
The syntax for using NoSFS.bat is:
NoSFS ComputerName1 [ComputerName2 ... ComputerNamen] where ComputerNameX is a Windows XP Professional computer name in your network.
Script:
NoSFS.bat contains: @echo off If {%1}=={} @echo Syntax: NoSFS ComputerName1 [ComputerName2 ... ComputerNamen]&goto :EOF setlocal :Next if {%1}=={} endlocal&goto :EOF set computer=%1 shift set computer=%computer:"=% set key="\\%computer%\HKLM\SYSTEM\CurrentControlSet\Control\Lsa" if /i "%computername%" EQU "%computer%" set key="HKLM\SYSTEM\CurrentControlSet\Control\Lsa" @echo reg add %key% /v forceguest /t REG_DWORD /d 00000000 /f reg add %key% /v forceguest /t REG_DWORD /d 00000000 /f @echo. goto :Next