|
424778940
新手上路

积分 12
发帖 12
注册 2009-6-27
状态 离线
|
『楼 主』:
如何用bat,vbs,reg等形式关闭xp"使用简单文件共享"
使用 LLM 解释/回答一下
RT
不要告诉我用人工干预的形式
应该是改个注册表的问题,不知道如何更改,我对注册表并不是很熟悉,希望指教
谢谢了
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.
|
|
2009-7-27 08:27 |
|
|
dato
高级用户
   
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
:: Disable Simple Sharing
%SystemRoot%\System32\REG add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v "DefaultValue" /t REG_DWORD /d 0
:: Disable Simple Sharing
%SystemRoot%\System32\REG add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v "DefaultValue" /t REG_DWORD /d 0
|

http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2009-7-27 09:32 |
|
|
424778940
新手上路

积分 12
发帖 12
注册 2009-6-27
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
楼上的,不行啊,没有改回来
我要的是关掉xp文件夹选项中的"使用简单文件共享"这项
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.
|
|
2009-7-27 09:49 |
|
|
424778940
新手上路

积分 12
发帖 12
注册 2009-6-27
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
%SystemRoot%\System32\REG add
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v
"DefaultValue" /t REG_DWORD /d 0
%SystemRoot%\System32\REG add
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v
"DefaultValue" /t REG_DWORD /d 0
|
|
2009-7-27 10:30 |
|
|
424778940
新手上路

积分 12
发帖 12
注册 2009-6-27
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
%SystemRoot%\System32\REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v "DefaultValue" /t REG_DWORD /d 0
这样还是不行啊
%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
|
|
2009-7-27 10:30 |
|
|
dato
高级用户
   
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
应该没问题的,实在不行你直接运行regedit找到相应的项修改。
使用psexec时需要去掉使用简单文件共享的钩的,所以这项修改肯定没问题的。
实在不行你用regshot监视一下注册表的修改过程。
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.
|

http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2009-7-28 02:02 |
|
|
keen
初级用户
 
积分 58
发帖 29
注册 2008-8-15
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
我用Regshot监视,手动改变“文件夹选项”中勾选或不勾选的结果是:
HKLM\SYSTEM\CurrentControlSet\Control\Lsa\forceguest: 0x00000000
HKLM\SYSTEM\CurrentControlSet\Control\Lsa\forceguest: 0x00000001
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
|
|
2009-7-28 10:20 |
|
|
everest79
金牌会员
      一叶枝头,万树皆春
积分 2564
发帖 1127
注册 2006-12-25
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
找着地方,改注册表后要刷新的,平常就是重启解决
Find the place, after modifying the registry, you need to refresh. Usually, restarting solves it
|

49206C6F766520796F752067757973 54656C3A3133383238343036373837 |
|
2009-7-28 10:23 |
|
|
dato
高级用户
   
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
汗你监视的那段是xp下强制使用guest用户访问,以下的设定首先禁用简单共享,然后设置以本地用户模式登录,然后刷新.能满足psexec的所有环境设置要求
:: Disable Simple Sharing
%SystemRoot%\System32\REG add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v "DefaultValue" /t REG_DWORD /d 0
:: Configure netshare
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /f /v "restrictanonymous" /t REG_DWORD /d 0
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /f /v "restrictanonymoussam" /t REG_DWORD /d 1
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /f /v "forceguest" /t REG_DWORD /d 0
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /f /v "limitblankpassworduse" /t REG_DWORD /d 0
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters" /f /v "autoshareserver" /t REG_DWORD /d 1
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /f /v "AutoShareWks" /t REG_DWORD /d 1
:: Make the changes effective immediately
%SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters
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.
:: Disable Simple Sharing
%SystemRoot%\System32\REG add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SimpleSharing" /f /v "DefaultValue" /t REG_DWORD /d 0
:: Configure netshare
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /f /v "restrictanonymous" /t REG_DWORD /d 0
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /f /v "restrictanonymoussam" /t REG_DWORD /d 1
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /f /v "forceguest" /t REG_DWORD /d 0
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /f /v "limitblankpassworduse" /t REG_DWORD /d 0
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters" /f /v "autoshareserver" /t REG_DWORD /d 1
%SystemRoot%\System32\REG add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /f /v "AutoShareWks" /t REG_DWORD /d 1
:: Make the changes effective immediately
%SystemRoot%\System32\RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters
|

http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2009-7-28 12:15 |
|
|
balinger
中级用户
  
积分 356
发帖 115
注册 2004-7-27
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
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
--------------------------------------------------------------------------
以上是XPSP3导出的。
应该是修改 HKLM\SYSTEM\CurrentControlSet\Control\Lsa\forceguest,试过有效。
我理解 DefaultValue 是点击 “还原为默认值” 时指定的默认值。
Windows Registry Editor Version 5.00
"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".
|
|
2009-7-29 09:24 |
|