Get-PC/Private/ExportTo-Excel.ps1
Zachary Gorman 4a01da0e5d Init commit
2024-06-11 11:27:55 -07:00

9 lines
246 B
PowerShell

function ExportToExcel{
param (
$GetPCArray
)
$timestamp = get-date -Format "MMddhhmmssms"
$outfile = "$env:TMP\getpcoutput$timestamp.csv"
$GetPCArray | Export-Csv $outfile -NoTypeInformation
Invoke-Item $outfile
}