Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3856
  • Last Modified:

How to disable Simple File Sharing remote on machines in a WOKRKGROUP

How to disable Simple File Sharing remotely on machines in a WOKRKGROUP, we can't run remote tools like NETSH using PSEXEC because our XPs will not be on a domain (special trade show setup) and be default XPs have SFS turned on, so is there a way to disable it remotely somehow? or it's a "Catch 22" situation?

Thanks
0
piotrmikula108
Asked:
piotrmikula108
  • 4
  • 4
1 Solution
 
Brian PringleSystems Analyst II, SCM, ERPCommented:
You can still use psexec.  Instead of the username being in the domain\username format, use computername\username.
0
 
piotrmikula108Author Commented:
I did try that, and as long a as the simple file sharing is enabled can't logon
0
 
Brian PringleSystems Analyst II, SCM, ERPCommented:
If you can't even sign on remotely with psexec, then you probably can't do anything else remotely, either.  You are going to have to touch each computer to manually remove the simple file sharing.

By the way, is it Windows XP Home Edition or Professional Edition?

Home Edition will not allow you to remotely administer/run applications.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
piotrmikula108Author Commented:
XP Pro, hmmm...got 50 PCs to do it on :-(
0
 
Brian PringleSystems Analyst II, SCM, ERPCommented:
0
 
piotrmikula108Author Commented:
Thanks for looking this up for me!

Please see my customized script and let me if I did it right
@echo off
If {%1}=={} @echo Syntax: NoSFS 10.0.6.94, 10.0.6.95, 10.0.6.96 &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

Open in new window

0
 
Brian PringleSystems Analyst II, SCM, ERPCommented:
I don't do a lot of scripting, but it looks fine.  I would say to try it on one or two computers to see if it works.  

Sorry.... I still rely heavily on command line batch files, so I don't usually need to resort to VBScript.
0
 
piotrmikula108Author Commented:
I found a program Multi-Remote-Registry-Changer (or it can be done with Windows command line tool "REG") that can disable the SFS remotely as long as the Firewall is disabled or when it's enabled the File and Printer Sharing exception is allowed

then you need to add this string to your registry

HKLM\system\currentcontrolset\control\Lsa /v ForceGuest /t Reg-Binary /d 0

and it will force no Guest mode on that machine which means the SFS will be disabled
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now