Solutions
Device management
Remotely manage, and protect laptops and mobile devices.
Orchestration
Automate tasks across devices, from app installs to scripts.
Software management
Inventory, patch, and manage installed software.
Extend Fleet
Integrate your favorite tools with Fleet.
Customers
Stripe + Fleet
Stripe consolidates multiple tools with Fleet.
Foursquare + Fleet
Foursquare quickly migrates to Fleet for device management.
What people are saying
Stories from the Fleet community.
More
Fleet’s built-in queries for collecting and storing important device information.
Uptime
Retrieves the amount time passed since a device's last boot.
SELECT * FROM uptime LIMIT 1
$os = Get-CimInstance -ClassName 'Win32_OperatingSystem' $lastBoot = $os.LastBootUpTime $uptimeSpan = (Get-Date) - $lastBoot $seconds = [math]::Floor($uptimeSpan.TotalSeconds) $pretty = '' if ($uptimeSpan.Days -gt 0) { $pretty += "$($uptimeSpan.Days) days, " } $pretty += "$($uptimeSpan.Hours) hours, $($uptimeSpan.Minutes) minutes, $($uptimeSpan.Seconds) seconds" [PSCustomObject]@{
seconds = $seconds
pretty = $pretty
} | Format-Table -AutoSize
uptime
PowerShell commands are currently work in progress, contributions welcome.
Bash commands are currently work in progress, contributions welcome.
Vitals