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

Jerold Schulman

October 6, 2003

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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 offIf {%1}
{} @echo Syntax: NoSFS ComputerName1 [ComputerName2 ... ComputerNamen]&goto :EOFsetlocal:Nextif {%1}
{} endlocal&goto :EOFset computer=%1shiftset computer=%computer:"=%set key="\%computer%HKLMSYSTEMCurrentControlSetControlLsa"if /i "%computername%" EQU "%computer%" set key="HKLMSYSTEMCurrentControlSetControlLsa"@echo reg add %key% /v forceguest /t REG_DWORD /d 00000000 /freg add %key% /v forceguest /t REG_DWORD /d 00000000 /[email protected] :Next



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like