Giter Club home page Giter Club logo

get-usblist's Introduction

USB Device Retrieval Script (PowerShell)

This PowerShell script provides a function called Get-USB that allows you to retrieve information about USB devices attached to a Windows system using Windows Management Instrumentation (WMI).

Prerequisites

  • Windows operating system (the script is designed to work on Windows)
  • PowerShell (version 3.0 or later)

Usage

  1. Clone or download the script to your local machine.

  2. Open a PowerShell session.

  3. If you haven't already done so, you may need to adjust your PowerShell execution policy to allow script execution. You can do this by running PowerShell as an administrator and executing the following command:

Set-ExecutionPolicy RemoteSigned

  1. Navigate to the directory where you saved the script using the cd command:

cd C:\path\to\script

  1. To load the script into your PowerShell session, execute the following command:

. .\Get-USB.ps1

Note: The dot (.) before the script path is necessary to load the script in the current session.

  1. Once the script is loaded, you can use the Get-USB function to retrieve USB device information. The function supports an optional parameter -ComputerName to specify a remote computer from which to retrieve USB devices. If no -ComputerName parameter is provided, the function will retrieve USB devices from the local computer.

Examples:

  • Retrieve USB devices from the local computer:

    Get-USB
    
  • Retrieve USB devices from a remote computer:

    Get-USB -ComputerName "RemoteComputer"
    

    Replace "RemoteComputer" with the actual name of the remote computer.

  1. The script will display information about the USB devices found, including the manufacturer, description, device ID, and status.

Notes

  • If no USB devices are found, a warning message will be displayed.
  • If an error occurs during the retrieval process, an error message will be displayed.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

This repository is licensed under the MIT License.

get-usblist's People

Contributors

secnnet avatar

Watchers

 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.