Fleet logo
Menu An icon indicating that interacting with this button will open the navigation menu.
Fleet logo An 'X' icon indicating that this can be interacted with to close the navigation menu.

Solutions

a small chevron
Device management

Device management

Remotely manage, and protect laptops and mobile devices.

Orchestration

Orchestration

Automate tasks across devices, from app installs to scripts.

Software management

Software management

Inventory, patch, and manage installed software.

Extend Fleet

Extend Fleet

Integrate your favorite tools with Fleet.


Customers

a small chevron
Stripe + Fleet

Stripe + Fleet

Stripe consolidates multiple tools with Fleet.

Foursquare + Fleet

Foursquare + Fleet

Foursquare quickly migrates to Fleet for device management.

What people are saying

What people are saying

Stories from the Fleet community.


Pricing

More

a small chevron
Docs

Docs

Guides

Guides

Support

Support

News

News

Get your license

Get your license

The handbook

The handbook

Fleet @ Meow Wolf

Kick off JNUC with Fleet at Meow Wolf Denver's Convergence Station.

Join us
Get a demo Try it yourself
Solutions A small chevron
Device management

Device management

Remotely manage, and protect laptops and mobile devices.

Orchestration

Orchestration

Automate tasks across devices, from app installs to scripts.

Software management

Software management

Inventory, patch, and manage installed software.

Extend Fleet

Extend Fleet

Integrate your favorite tools with Fleet.

Customers A small chevron
Stripe + Fleet

Stripe + Fleet

Stripe consolidates multiple tools with Fleet.

Foursquare + Fleet

Foursquare + Fleet

Foursquare quickly migrates to Fleet for device management.

What people are saying

What people are saying

Stories from the Fleet community.

Pricing
More A small chevron
Docs

Docs

Guides

Guides

Support

Support

News

News

Get your license

Get your license

The handbook

The handbook

Fleet @ Meow Wolf

Kick off JNUC with Fleet at Meow Wolf Denver's Convergence Station.

Join us
Try it yourself Get a demo
Queries/
Get Windows print spooler remote code execution vulnerability

Get Windows print spooler remote code execution vulnerability

Contributor's GitHub profile picture

Detects devices that are potentially vulnerable to CVE-2021-1675 because the print spooler service is not disabled.

To learn more about queries, check this guide.

Query PowerShellNEW BashNEW
SELECT CASE cnt WHEN 2 THEN "TRUE" ELSE "FALSE" END "Vulnerable" FROM (SELECT name start_type, COUNT(name) AS cnt FROM services WHERE name = 'NTDS' or (name = 'Spooler' and start_type <> 'DISABLED')) WHERE cnt = 2;
$processes = Get-WmiObject -Query "SELECT * FROM Win32_Process WHERE CommandLine LIKE 'nmap%'"  
foreach ($proc in $processes) {  
    # Get parent's name  
    $parentName = ""  
    if ($proc.ParentProcessId) {  
        $parentProc = Get-WmiObject Win32_Process -Filter "ProcessId=$($proc.ParentProcessId)" -ErrorAction SilentlyContinue  
        if ($parentProc) {  
            $parentName = $parentProc.Name  
        }  
    }  

    # Get username from process owner  
    $username = ""  
    $ownerInfo = $proc.GetOwner()  
    if ($ownerInfo.ReturnValue -eq 0) {  
        $username = "$($ownerInfo.Domain)\$($ownerInfo.User)"  
    }  

    # Convert WMI creation date to readable time  
    $startTime = $null  
    if ($proc.CreationDate) {  
        $startTime = [Management.ManagementDateTimeConverter]::ToDateTime($proc.CreationDate)  
    }  

    # cwd is not available from Win32_Process; use placeholder  
    $cwd = "N/A"  

    # Create a custom object with the desired fields  
    $result = [PSCustomObject]@{  
        pid         = $proc.ProcessId  
        name        = $proc.Name  
        path        = $proc.ExecutablePath  
        cmdline     = $proc.CommandLine  
        cwd         = $cwd  
        start_time  = $startTime  
        parent      = $proc.ParentProcessId  
        parent_name = $parentName  
        username    = $username  
    }  

    Write-Output $result  
}
An icon indicating that this section has important information

PowerShell commands are currently work in progress, contributions welcome.

An icon indicating that this section has important information

Bash commands for macOS are currently work in progress, contributions welcome.

Platform

macOSApple

WindowsWindows

LinuxLinux

ChromeOSChromeOS

Suggest an editEdit Talk to an engineerGet a demo
Fleet logo
Multi platform Device management Orchestration Software management Integrations Pricing
Documentation Support Docs API Release notes Get your license
Company About News Jobs Logos/artwork Why open source?
ISO 27001 coming soon a small checkmarkSOC2 Type 2 Creative Commons Licence CC BY-SA 4.0
© 2025 Fleet Inc. Privacy
Slack logo GitHub logo LinkedIn logo X (Twitter) logo Youtube logo Mastadon logo
Tried Fleet yet?

Get started with Fleet

Start
continue
×