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 all will 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 pull
An 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-master
toPowerShell-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.
If you have created a PowerShell Scanner that you would like to add to this repository, please read the Contributing guide.