作者PhenomII (追愛妻追得好累)
看板AntiVirus
標題[心得] SMB1 Enable/Disable/Check Script
時間Mon May 15 22:42:07 2017
為了方便大家開關SMB1以及Check
下面的Script分享給大家, 指令是照imasa大大提供的方法
程式碼貼出來給各位, 有任何問題可以幫忙檢查提出一下
SMB_Hotfix_Tools
https://mega.nz/#!t1AAEYyL!aDpcQWsHqDRIBJmAJr00Gpjm1C8_eK5_gxoee_6pqDU
內含以下三個部分
DisableSMB1
Win7靠Windows Registry設SMB1 -Value 0
Win8/8.1/10靠set-SmbServerConfiguration -EnableSMB1Protocol $false
程式碼:
http://imgur.com/LTOeW6R
EnableSMB1
Win7靠Windows Registry設SMB1 -Value 1
Win8/8.1/10靠set-SmbServerConfiguration -EnableSMB1Protocol $True
程式碼:
http://imgur.com/Ek1HgRj
SMB1_HotfixCheck
同上述位置去Query 值來判斷SMB1的狀態是Enable or Disable
同時會列出已安裝的Hotfix資訊(參考
https://goo.gl/iz7kdA)
程式碼:
http://imgur.com/wOuDef6
http://imgur.com/z0tzDEK
http://imgur.com/ZdRAF5s
http://imgur.com/6E1yI3U
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.194.126.120
※ 文章網址: https://webptt.com/m.aspx?n=bbs/AntiVirus/M.1494859335.A.F51.html
1F:推 abramtw: 謝謝分享 05/15 23:10
2F:推 gohome0083: 很棒的整合 05/15 23:43
3F:推 kipi91718: 謝謝分享 05/15 23:54