Skatterbrainz / psIntune

PowerShell functions for Intune management operations
MIT License
6 stars 2 forks source link

Outputs 0 #7

Open bezik46 opened 2 years ago

bezik46 commented 2 years ago

Might be just me being silly, but I get nothing from

Write-psIntuneDeviceReport -IntuneDevices $devices -DeviceOS "Windows" -Overwrite 1 -Show 0



cmdlet Write-psIntuneDeviceReport at command pipeline position 1
Supply values for the following parameters:
IntuneApps:
Gathering data to generate report
Returned 0 devices
Applying filter rule: Base Devices
Applying filter rule: Device Models
Applying filter rule: Orphaned Devices
Applying filter rule: Duplicate Devices
Applying filter rule: Stale Devices
Applying filter rule: Devices with Low Disk Space
Applying filter rule: Software
Applying filter rule: Software Install Counts
Applying filter rule: Distinct Software Products
Crunching statistics and stuff...
Exporting datasets: Summary
Exporting datasets: Intune Devices (0)
Exporting datasets: Intune Device Models (0)
Exporting datasets: Intune Stale Devices (0)
Exporting datasets: Intune Duplicate Devices (0)
Exporting datasets: Intune Orphaned Devices (0)
Exporting datasets: Intune Devices with Low Disk Space (0)
Exporting datasets: Intune Installed Software (0)
Exporting datasets: Intune Software Install Counts (0)
Exporting datasets: Intune Software Distinct Products (0)```

Yet 

$devices = Get-PsIntuneDevice -UserName $username -DeviceOS Windows -Detail Detailed -ShowProgress 0

holds the whole correct list of devices
Skatterbrainz commented 2 years ago

oooh. I'll investigate that. Thank you for the heads-up!

Skatterbrainz commented 2 years ago

When you say you "get nothing from" does that mean you don't even get a spreadsheet file, or you get a spreadsheet and it's blank/empty? If a file is created, are there any tabs added?

bezik46 commented 2 years ago

Sure, get spreadsheet with tabs and no content at all, yet everything is available in $devices