JSI Tip 7286. How do I disable Simple File Sharing by using the registry?

Windows XP Home Edition, and Windows XP Professional in a standalone or peer-to-peer network, defaults to the Simple File Sharing user interface, instead of the classic Security and Sharing tabs.

I have scripted NoSFS.bat to disable Simple File Sharing on Windows XP Professional.

The syntax for using NoSFS.bat is:

NoSFS ComputerName1 \[ComputerName2 ... ComputerNamen\]

where ComputerNameX is a Windows XP Professional computer name in your network.

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

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.