![]() |
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-11 14:58 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Delete the remembered password for network sharing, convert the bat into vbs |
| Printable Version 1,967 / 6 |
| Floor1 andison625 | Posted 2009-02-24 18:55 |
| 初级用户 Posts 36 Credits 70 | |
|
I have several BAT files. One is for cleaning system junk, and the other is to call the WIN control command.
After running control userpasswords2, enter the password management, where the passwords for LAN shares are remembered. Using the batch command net use * /del /y can clear them, but this doesn't seem to work every time. Because as a network administrator, many important documents need to be locked and users shouldn't be able to see them. I want a VBS script that, when run, will delete the shared passwords. I've searched many forums, but there are no scripts about this. Can VBS achieve this... Batch can't... Depressed ING...... |
|
| Floor2 zz999 | Posted 2009-02-25 00:37 |
| 新手上路 Posts 2 Credits 5 | |
|
Also seeking. Hope experts come
|
|
| Floor3 everest79 | Posted 2009-02-25 03:39 |
| 金牌会员 Posts 1,127 Credits 2,564 | |
|
Use the Public Computer Security Template after installing the system.
Or Open Local Policies, and enable "Do not allow saving credentials or.NET Passports for network authentication" in the Security Options. |
|
| Floor4 andison625 | Posted 2009-02-25 10:26 |
| 初级用户 Posts 36 Credits 70 | |
Originally posted by everest79 at 2009-2-25 03:39 AM: Does this need to be implemented for domain management? Is there a VBS script implementation for standalone computers? |
|
| Floor5 everest79 | Posted 2009-02-26 04:54 |
| 金牌会员 Posts 1,127 Credits 2,564 | |
Originally posted by andison625 at 2009-2-25 10:26 AM: Local policies are exactly applied to non-domain-joined settings, just try it and you'll know |
|
| Floor6 andison625 | Posted 2009-03-05 04:36 |
| 初级用户 Posts 36 Credits 70 | |
|
Upstairs, but this needs to be done in batches, which is quite troublesome. Is there a VBS script to modify this setting? Just restart the computer after setting it?
|
|
| Floor7 everest79 | Posted 2009-03-06 15:22 |
| 金牌会员 Posts 1,127 Credits 2,564 | |
|
Click "Start", click "Run", type "gpedit.msc", and then click "OK".
Under "Computer Configuration", expand "Windows Settings", "Security Settings", "Local Policies", and then expand "Security Options". In this policy pane, right - click "Network access: Do not allow storage of credentials or.NET Passport for network authentication", click "Properties", click to select "Disabled", and then click "OK". Click "Start", click "Run", type "regedit", and then click "OK". Find and then right - click the registry sub - key under: The "Validation" value is set to 0. Restart the computer. Under the registry HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa, set the value of "disabledomaincreds" to 1, and then restart |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |