关闭默认共享-自动登陆简单批处理

@echo off
echo 取消c$,D$,E$硬盘分区的默认共享
reg add "hklm\SYSTEM\CurretControlSet\Services\lanmanserver\parameters" /v "AutoShareServer" /t REG_DWORD /d 0 /f

echo 禁止ADMIN$共享 
reg add "hklm\SYSTEM\CurretControlSet\Services\lanmanserver\parameters" /v "AutoShareWks" /t REG_DWORD /d 0 /f

echo 禁止IPC$共享 
reg add "hklm\SYSTEM\CurrentControlSet\Control\Lsa" /v "restrictanonymous" /t REG_DWORD /d 0 /f

echo 关闭计算机时自动结束不响应的任务
reg add "hkcu\ControlPanel\Desktop /v "AugoEndTasks" /t REG_DWORD /d "1" /f

echo 减少预读取,减少进度条等待时间,效果进度条跑一圈就进入登录画面 
reg add "hklm\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v "EnablePrefetcher" /t REG_DWORD /d 1 /f

echo 自动登录 帐号:zixu   密码:Nw.admin
reg add "hklm\SYSTEM\ControlSet001\Control\Session Manager" /v "BootExecute" /t REG_DWORD /d 0 /f
reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /t REG_SZ /d zixu /f
reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultPassword" /t REG_SZ /d Nw.admin /f
reg add "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /t REG_SZ /d 1 /f
echo.
echo 需要重启计算机!
@pause
 
 

你可能感兴趣的:(职场,自动,批处理,登陆,休闲)