https://github.com/evotecit/powerqualys
PowerQualys is a PowerShell module to interact with Qualys API in easy and efficient way
https://github.com/evotecit/powerqualys
api powershell qualys
Last synced: 3 months ago
JSON representation
PowerQualys is a PowerShell module to interact with Qualys API in easy and efficient way
- Host: GitHub
- URL: https://github.com/evotecit/powerqualys
- Owner: EvotecIT
- Created: 2024-06-10T13:30:15.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-14T09:09:13.000Z (over 1 year ago)
- Last Synced: 2025-10-10T00:26:38.863Z (4 months ago)
- Topics: api, powershell, qualys
- Language: PowerShell
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- Changelog: CHANGELOG.MD
Awesome Lists containing this project
README
# PowerQualys - PowerShell Module
`PowerQualys` is a PowerShell module to interact with Qualys API.
- [Qualys API PDF](https://cdn2.qualys.com/docs/qualys-api-vmpc-user-guide.pdf)
### Installation
```powershell
Install-Module -Name PowerQualys -Force -Verbose
```
### Examples
#### Connecting to Qualys
```powershell
Connect-Qualys -Url "https://qualysguard.apps.qualys.eu" -Username "username" -Password 'password!@'
```
#### Examples of usage
Different examples of usage.
```powershell
$Query = Invoke-QualysQuery -RelativeUri 'asset/ip/' -Method 'GET' -Body @{ action = 'list' } -Verbose
$Query | Get-Member -Type Property
```
```powershell
$Hosts1 = Get-QualysHost -Verbose -MaximumRecords 2 -ScanDateBefore (Get-Date).AddDays(-1) -Details All/AGs -Native
$Hosts1 | Format-Table
```
```powershell
$Hosts = Get-QualysHostDetection -Verbose -MaximumRecords 2 -ShowIgs -QID '105008,105009,125008', '125028', '45027,45302,90924,91074,91328'
$Hosts | Format-List
```
```powershell
$Query1 = Invoke-QualysQuery -RelativeUri 'report/' -Method 'GET' -Body @{ action = 'list'; id = '45302' } -Verbose
$Query1.REPORT_LIST_OUTPUT.RESPONSE
```
```powershell
$KB1 = Get-QualysKB -Verbose -Ids '106216'
$KB1 | Format-Table
$KBAfter = Get-QualysKB -Verbose -PublishedAfter (Get-Date).AddDays(-1)
$KBAfter | Format-Table
$List1 = @(
Get-QualysKB -Verbose -Ids '45002'
Get-QualysKB -Verbose -Ids '45302'
Get-QualysKB -Verbose -Ids '105231'
Get-QualysKB -Verbose -Ids '90235'
)
$List1
$KB = Get-QualysKB -Verbose
```
```powershell
$Groups = Get-QualysGroup -Verbose -MaximumRecords 2
$Groups
```
```powershell
$Users = Get-QualysData -Type LocalAdmins -Verbose #-MaximumRecords 2
$Users | Format-Table
```