Disable Simple File Sharing via registry key or GPO

reicherb

Platinum Member
Nov 22, 2000
2,122
0
0
Is there a registry key that can be used to disable simple file sharing for ALL users on a WinXP PC? Or maybe it can be done with a Group Policy?

I need to disable it on many PCs and don't want to make a visit to each one.

Thanks.
 

Roadraider

Banned
Apr 9, 2003
1,639
0
0
Of course there is a way. How about I give you 2? :)

1 - Use a script and add it early in the executed batch files of your boot disk. I have scripted NoSFS.bat to disable Simple File Sharing on Windows XP Professional.

The syntax for using NoSFS.bat is:

NoSFS ComputerName1 [ComputerName2 ... ComputerNameX]

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


2 - Or directly access this key:
\\%computer%\HKLM\SYSTEM\CurrentControlSet\Control\Lsa & set DWORD=00000000


I take it you know how to create your own boot disks. Solution 1 works more safely than2.

Good luck.
 

reicherb

Platinum Member
Nov 22, 2000
2,122
0
0
I spoke too soon. Every time a user logs out the key is reset.

Any other ideas?
 

Sideswipe001

Golden Member
May 23, 2003
1,116
0
0
I found one object in Group Policy that might do it. In Computer Configuration/Windows Settings/Local Policies/User Rights Assignment there is "Create Permenant Shared Objects". I haven't tested it as we NEED people to be able to create/use shares. But you might try that.