PSSmb

2.0.1

PSSmb contains commands for getting the status of SMB client and server components, and enabling and disabling the different versions installed on local and remote computers.

Due to recent vulnerabilities like EternalBlue that was used by the ransomware WannaCry and the wiper PetyaWrap, it is now recommended to disable both the client and server components of SMB v
PSSmb contains commands for getting the status of SMB client and server components, and enabling and disabling the different versions installed on local and remote computers.

Due to recent vulnerabilities like EternalBlue that was used by the ransomware WannaCry and the wiper PetyaWrap, it is now recommended to disable both the client and server components of SMB version 1 entirely, and can be done with Group Policy through the Disable-SmbByGpo command.

It is important to point out that SMB versions 2 and 3 use the same stack, so enabling or disabling one of these versions will cause the same thing to happen to the other version.

When using the Enable-Smb or Disable-Smb commands, it is recommended to use the Restart parameter to cause the computer to immediately reboot after the changes have been made. This is required for the changes to take effect.
Show more

Minimum PowerShell version

2.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSSmb

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSSmb

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2017 Chris Carter. All rights reserved.

Package Details

Author(s)

  • Chris Carter

Tags

SMB WannaCry WCry EternalBlue SMB1 SMB2 GPO

Functions

Get-Smb Disable-Smb Enable-Smb Disable-SmbByGpo

Dependencies

This module has no dependencies.

Release Notes

The command Disable-SmbByGpo was added. Please, see Get-Help Disable-SmbByGpo for details. Also, the module manifest file was changed to use older vocabulary that would allow correct importation on PowerShell 2.0.

FileList

Version History

Version Downloads Last updated
2.0.1 (current version) 1,552 7/6/2017
1.0 36 7/3/2017