From d684cd94b6e2d39d376354687ff22abc9432e335 Mon Sep 17 00:00:00 2001 From: dyoder Date: Fri, 23 Jul 2021 13:50:38 -0400 Subject: [PATCH] change save location to root of systemdrive --- Get-InstalledSoftware.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Get-InstalledSoftware.ps1 b/Get-InstalledSoftware.ps1 index b481285..5d4dfee 100644 --- a/Get-InstalledSoftware.ps1 +++ b/Get-InstalledSoftware.ps1 @@ -1 +1,2 @@ -Get-WmiObject -Class Win32_Product | Sort-Object Name | Select Name,Vendor,Version | Where Name -NotLike "" | Export-Csv -Path $FILE -NoTypeInformation -Force +$FILE = "${SystemDrive}\InstalledSoftware.csv" +Get-WmiObject -Class Win32_Product | Sort-Object Name | Select Name,Vendor,Version | Where Name -NotLike "" | Export-Csv -Path $FILE -NoTypeInformation -Force