PSSmb.psd1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66

@{

# Script module or binary module file associated with this manifest.
ModuleToProcess = 'PSSmb.psm1'

# Version number of this module.
ModuleVersion = '2.0.1'

# ID used to uniquely identify this module
GUID = '404c9670-6c87-4e76-bb87-7c0127478f6c'

# Author of this module
Author = 'Chris Carter'

# Company or vendor of this module
CompanyName = 'N/A'

# Copyright statement for this module
Copyright = '(c) 2017 Chris Carter. All rights reserved.'

# Description of the functionality provided by this module
Description = '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.'


# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '2.0'

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = @('Get-Smb','Disable-Smb','Enable-Smb','Disable-SmbByGpo')

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = @('gsmb','dsmb','esmb','dsgp')

# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

    PSData = @{

        # Tags applied to this module. These help with module discovery in online galleries.
        Tags = @('SMB','WannaCry','WCry','EternalBlue','SMB1','SMB2','GPO')

        # A URL to the license for this module.
        LicenseUri = 'http://creativecommons.org/licenses/by-sa/4.0/'

        # A URL to the main website for this project.
        ProjectUri = 'https://gallery.technet.microsoft.com/Module-to-Disable-and-e161e4d8'

        # A URL to an icon representing this module.
        # IconUri = ''

        # ReleaseNotes of this module
        ReleaseNotes = '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.'

    } # End of PSData hashtable

} # End of PrivateData hashtable

}