View difference between Paste ID: 739Yx9sM and HjQX8maB
SHOW: | | - or go back to the newest paste.
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.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation" /v "AllowInsecureGuestAuth" /t REG_DWORD /d "0x1" /f
12+
13
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters" /v MaintainServerList /t REG_SZ  /d Yes /f
14
pause
15-
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Notifications\OptionalFeatures\SMB1Protocol" /v "Selection" /t REG_DWORD /d "0x1" /f
15+
16-
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Notifications\OptionalFeatures\SMB1Protocol-Client" /v "Selection" /t REG_DWORD /d "0x1" /f
16+
17-
Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Notifications\OptionalFeatures\SMB1Protocol-Server" /v "Selection" /t REG_DWORD /d "0x1" /f
17+