Created
January 19, 2021 14:05
-
-
Save keyboardcrunch/921e9f87249d3ffea35c97c6757f99ac to your computer and use it in GitHub Desktop.
SMB - CMPivot Queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @0daydorpher | |
| SMBConfig | |
| | summarize countif( (EnableSMB1Protocol == true) ) by Device | |
| | where (countif_ > 0) | |
| @IoanPopovici Enabled/Disabled barchart | |
| SMBConfig | |
| | summarize Enabled=countif(EnableSMB1Protocol == true) by Device | |
| | summarize NumberOfDevices=count() by iif(Enabled==1,'Enabled','Disabled') | |
| | render barchart with (title='SMBv1 Status', xtitle='Status', ytitle='Number of Devices') | |
| OptionalFeature | |
| | where Name == 'smb1protocol' and InstallState == 1 | |
| | join SMBConfig | |
| | summarize Enabled=countif(EnableSMB1Protocol == true) by Device | |
| | summarize NumberOfDevices=count() by iif(Enabled==1, 'Enabled','Disabled') | |
| | render barchart with (title='SMBv1 Status', xtitle='Status', ytitle='Number of Devices') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment