freefiles

Untitled

Mar 18th, 2021
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. powershell.exe -Command "Set-SmbServerConfiguration -EnableSMB1Protocol $true -Force"
  2. powershell.exe -Command "Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol"
  3. powershell.exe -Command "Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol-Server"
  4. powershell.exe -Command "Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol-Client"
  5. powershell.exe -Command "Set-SmbServerConfiguration -EnableSMB2Protocol $true -Force"
  6. powershell.exe -Command "Set-SmbClientConfiguration -EnableBandwidthThrottling 0 -EnableLargeMtu 1"
  7. netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes
  8. netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
  9. netsh firewall set service type=fileandprint mode=enable profile=all
  10. dism /online /norestart /enable-feature /featurename:SMB1Protocol
  11. reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters /v AllowInsecureGuestAuth /t reg_dword /d 00000001 /f
  12. reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters" /v IsDomainMaster /t REG_SZ /d True /f
  13. reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters" /v MaintainServerList /t REG_SZ /d Yes /f
  14. pause
  15. @echo Checking SMBv1/v2 is enabled
  16. sc.exe qc lanmanworkstation
  17. pause
Advertisement
Add Comment
Please, Sign In to add comment