Basic Inventory App in PowerShell

Basic Inventory App in PowerShell

Model: Claude
Difficulty: Intermediate
Upvotes: 2
appsautomationinventoryITPowerShell

โ€” Prompt โ€”

Draft a PowerShell script that creates a simple CSV inventory of installed apps, computer name, and last boot time for all PCs in [OU/domain].

Why It Works

Instant hardware/software snapshotโ€”core to compliance, audits, and troubleshooting.

Example Output

OU: Workstations. Script: Get-ADComputer | Get-WmiObject Win32_Product, Export-CSV with LastBootUpTime.