中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 07:07
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » How to close the "Use Simple File Sharing" in XP in the form of bat, vbs, reg, etc.
Printable Version  1,823 / 9
Floor1 424778940 Posted 2009-07-27 08:27
新手上路 Posts 12 Credits 12
RT
Don't tell me to use manual intervention.
It should be a problem of modifying the registry. I don't know how to change it. I'm not very familiar with the registry. I hope for guidance.
Thanks.
Floor2 dato Posted 2009-07-27 09:32
高级用户 Posts 377 Credits 916
:: Disable Simple Sharing
%SystemRoot%\System32\REG add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v "DefaultValue" /t REG_DWORD /d 0
Floor3 424778940 Posted 2009-07-27 09:49
新手上路 Posts 12 Credits 12
Upstairs, no good, didn't change it back.

What I want is to turn off the "Use simple file sharing" option in the folder options of XP.
Floor4 424778940 Posted 2009-07-27 10:30
新手上路 Posts 12 Credits 12
%SystemRoot%\System32\REG add
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v
"DefaultValue" /t REG_DWORD /d 0
Floor5 424778940 Posted 2009-07-27 10:30
新手上路 Posts 12 Credits 12
%SystemRoot%\System32\REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v "DefaultValue" /t REG_DWORD /d 0
Still no good like this
Floor6 dato Posted 2009-07-28 02:02
高级用户 Posts 377 Credits 916
It should be okay. If it really doesn't work, you can directly run regedit to find the corresponding item and modify it.

When using psexec, you need to unhook the simple file sharing, so this modification must be okay.

If it really doesn't work, you can use regshot to monitor the registry modification process.
Floor7 keen Posted 2009-07-28 10:20
初级用户 Posts 29 Credits 58
The results of manually checking or unchecking in "Folder Options" monitored by Regshot are:
HKLM\SYSTEM\CurrentControlSet\Control\Lsa\forceguest: 0x00000000
HKLM\SYSTEM\CurrentControlSet\Control\Lsa\forceguest: 0x00000001
Floor8 everest79 Posted 2009-07-28 10:23
金牌会员 Posts 1,127 Credits 2,564
Find the place, after modifying the registry, you need to refresh. Usually, restarting solves it
Floor9 dato Posted 2009-07-28 12:15
高级用户 Posts 377 Credits 916
Hei, the part you monitored is about forcing the use of the guest user for access under XP. The following settings first disable simple sharing, then set to log in in local user mode, and then refresh. It can meet all the environment setting requirements of psexec.

Floor10 balinger Posted 2009-07-29 09:24
中级用户 Posts 115 Credits 356
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing]
"Type"="checkbox"
"Text"="@shell32.dll,-30518"
"HKeyRoot"=dword:80000002
"RegPath"="System\\CurrentControlSet\\Control\\LSA"
"ValueName"="ForceGuest"
"CheckedValue"=dword:00000001
"UncheckedValue"=dword:00000000
"HelpID"="shell.hlp#51154"
"DefaultValue"=dword:00000001
--------------------------------------------------------------------------
The above is exported from XPSP3.
It should be modifying HKLM\SYSTEM\CurrentControlSet\Control\Lsa\forceguest, and it worked.
I understand that DefaultValue is the default value specified when clicking "Restore to default value".
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023