Notices: This section not yet converted to new layout. Download stats are rolling back out.

408

Downloads

408

Downloads of v 1.0.0

6/28/2017

Last update

Disable SMB V1

1.0.0

Package test results are passing.

This package was approved by moderator flcdrg on 7/7/2017.

Disables SMB V1 for win 7, Vista, 8, 8.1 and 10.

To install Disable SMB V1, run the following command from the command line or from PowerShell:

C:\> choco install disable-smb-v1

To upgrade Disable SMB V1, run the following command from the command line or from PowerShell:

C:\> choco upgrade disable-smb-v1

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $os = [System.Environment]::OSVersion.VersionString
    $os = $os -replace '\D+(\d+)','$1'
    
    # windows 10
    if($os.ToString().StartsWith("10"))
    {
     echo "Windows 10"   
     Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol -NoRestart
    
    }
    
    # windows 8.1
    if ($os.ToString().StartsWith("63"))
    {
     echo "Windows 8.1"    
     Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol -NoRestart
      
    }
    
    # windows 8
    if ($os.ToString().StartsWith("62"))
    {
        echo "Windows 8" 
        Set-SmbServerConfiguration -EnableSMB1Protocol $false
        sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
        sc.exe config mrxsmb10 start= disabled
    }
    
    # windows vista
    if ($os.ToString().StartsWith("60"))
    {
        echo "Windows Vista" 
        Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 0 -Force
        sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
        sc.exe config mrxsmb10 start= disabled
    }
    
    # windows 7
    if ($os.ToString().StartsWith("61"))
    {
        Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 0 -Force
        sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi
        sc.exe config mrxsmb10 start= disabled
    }
    
    # windows xp
    if ($os.ToString().StartsWith("5"))
    {
        echo "Windows XP" 
    
    }
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • app

Tags

Version History

Version Downloads Last updated Status

Discussion for the Disable SMB V1 Package

Ground rules:

  • This discussion is only about Disable SMB V1 and the Disable SMB V1 package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Disable SMB V1, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok