From 768138a56e030677f621b68f3a34ed104fe4f5fe Mon Sep 17 00:00:00 2001 From: dyoder Date: Fri, 23 Jul 2021 13:46:33 -0400 Subject: [PATCH] added script --- Get-InstalledSoftware.ps1 | 1 + rmm/Get-InstalledSoftware.ps1 | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 Get-InstalledSoftware.ps1 create mode 100644 rmm/Get-InstalledSoftware.ps1 diff --git a/Get-InstalledSoftware.ps1 b/Get-InstalledSoftware.ps1 new file mode 100644 index 0000000..b481285 --- /dev/null +++ b/Get-InstalledSoftware.ps1 @@ -0,0 +1 @@ +Get-WmiObject -Class Win32_Product | Sort-Object Name | Select Name,Vendor,Version | Where Name -NotLike "" | Export-Csv -Path $FILE -NoTypeInformation -Force diff --git a/rmm/Get-InstalledSoftware.ps1 b/rmm/Get-InstalledSoftware.ps1 new file mode 100644 index 0000000..5bcb184 --- /dev/null +++ b/rmm/Get-InstalledSoftware.ps1 @@ -0,0 +1,11 @@ +. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1'))) + +## Atera variable to specify output file +## Note: enter 'null' at runtime to use default save location of current user's desktop +If ( '{[OutputFile]}' -eq 'null' ) { + $FILE = "${Env:UserProfile}\Desktop\InstalledSoftware.csv" +} Else { + $FILE = "{[OutputFile]}" +} + +Run-Script -LivePSScript Get-InstalledSoftware \ No newline at end of file