The best way to use this repository is with Git. It makes updating very easy and allows you to contribute your own PowerShell scanners or fixes.
- Install Git. We have a package for this in PDQ Deploy's Package Library ;)
- Clone this repository to the root of your C drive. This is necessary because the PowerShell Scanner feature does not currently support variables, and all paths assume
C:\PowerShell-Scanners.
git clone https://github.com/pdq/PowerShell-Scanners.git C:\PowerShell-Scanners- Navigate to your clone of this repository.
- Run
git pull.
cd C:\PowerShell-Scanners
git pullAn alternative download method if you can't/don't want to install Git.
- Click the green "Code" button toward the top-right of this page.
- Click the "Download ZIP" link.
- Save the ZIP anywhere you want.
- Extract the contents of the ZIP to the root of your C drive. This is necessary because the PowerShell Scanner feature does not currently support variables.
- Rename
PowerShell-Scanners-mastertoPowerShell-Scanners.
- Delete
C:\PowerShell-Scanners(as long as you haven't edited anything!). - Follow the Setup instructions again.
Now that you have this repository downloaded, it's time to import the PowerShell Scanner profile(s) that you want!
- Open PDQ Inventory (version 19.0.40.0 or later).
- Go to
File > Import. - Navigate to the folder of the PowerShell Scanner you want, such as
C:\PowerShell-Scanners\PowerShell Scanners\Mapped Drives. - Click on
Scan Profile.xml. - Click the Open button.
That's it! To update your imported profile(s), follow the appropriate Updating section above. You shouldn't have to re-import any Scan Profiles unless you see a note telling you to in that profile's README file.
Many of these scanners are compatible with PDQ Connect for remote execution. To use a scanner in PDQ Connect:
- Check the scanner's README file for the Compatibility section to verify PDQ Connect support.
- Copy the PowerShell code from the scanner's
.ps1file. - Paste it into a PDQ Connect Run PowerShell script action.
- Configure any required parameters as noted in the scanner's README.
For a list of scanner compatibility with PDQ Connect, see the Compatibility section in each scanner's README under PowerShell Scanners\<Scanner Name>\README.md.
If you have created a PowerShell Scanner that you would like to add to this repository, please read the Contributing guide.