Intel,Altiris Group

Disable Windows XP Simple File Sharing 

01-15-2009 05:39 PM

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.


NoSFS.bat contains:

@echo off
If {%1}=={} @echo Syntax: NoSFS ComputerName1 [ComputerName2 ... ComputerNamen]&goto :EOF
if {%1}=={} endlocal&goto :EOF
set computer=%1
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
goto :Next

By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License
Support:User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.

0 Favorited
2 Files
jpg file
9071.jpg   2K   1 version
Uploaded - 02-25-2020
zip file   368B   1 version
Uploaded - 02-25-2020

Tags and Keywords


04-07-2009 10:45 PM

you can use GPO, here's an excel list for other settings

04-07-2009 10:44 PM

If simple file sharing is enabled, everyone in your workgroup has access to your shared folders. If simple file sharing is disabled, members of your workgroup cannot access your shared folders until you choose to share particular folders or drives with those users or groups that you select.

If simple file sharing is enabled, the simple file sharing user interface is displayed instead of the Security and Sharing tabs. By default, this new user interface is implemented in both Windows XP Home Edition and Windows XP Professional if you are working in a workgroup. If you disable simple file sharing, the classic Security and Sharing tabs appear, and you can specify which users and groups have access to shared folders on your computer.

04-04-2009 02:27 PM

Handy script but is there any particular reason behind disabling Simple File Sharing on Windows XP Professional?
Just curious...

Related Entries and Links

No Related Resource entered.