Giter Site home page Giter Site logo

powershell-smbsharescanner's Introduction

SMBShareScanner.ps1

This PowerShell script will allow you to scan open shares based on a list you provide or a subnet you enter. It will process hostnames or IP addresses and attempt to connect to the shares on a machine using WMI to make the connection. The latest version uses NetView instead of WMI to allow non-administrative users to get the same results.

Usage C:> SMBShareScanner.ps1

.Synopsis Query share information including connection numbers .DESCRIPTION Returns the number of connections to Shares on local or remote systems and the share information .EXAMPLE Get-ShareInfo -ComputerName Server1,Server2 | Format-Table -AutoSize .EXAMPLE Get-ShareInfo -CN Localhost .INPUTS A String or Array of ComputerNames .OUTPUTS An OBJECT with the following properties is returned from this function PSComputerName,Name,Path,Description,Connections,MaximumAllowed,AllowMaximum You could check gwmi -class win32_Share | Get-Member and add extra properties if you like .NOTES General .FUNCTIONALITY Using WMI to query the number of open connections to Shares on local or remote systems Then adding this information to the basic win32_share info

Start-SMBShareScanner.bat

This is a simple batch script wrapper for a runas command for when you share your script with someone who can't right click and choose runas ... Seriously, we had to do this for a 'Sys Admin'

powershell-smbsharescanner's People

Contributors

securenetworkmanagement avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.