-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathSoftware2.ps1
More file actions
20 lines (20 loc) · 2.23 KB
/
Software2.ps1
File metadata and controls
20 lines (20 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
########################################################################################
# Version of Software Script
# Author: Matt Soteros
# Version: v1.1
########################################################################################
##VARIABLES#############################################################################
Set-Location c:\
# Set base path to prefix all installation paths.
$sPath = "C:\Admin\Software"
# Get Computer Name this will be used for Licensing infomation
$sComputerName = $env:COMPUTERNAME
# Set The Log Location
$sFile = "C:\Admin\SoftwareInstallation.TXT"
# Set base bath for Registry uninstallation Paths
$rPathX64 = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
$rPathX86 = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
$sComputerModel = (Get-WmiObject -Query "SELECT * FROM Win32_ComputerSystem").Model
$sComputerMake = (Get-WmiObject -Query "SELECT * FROM Win32_ComputerSystem").Manufacturer
$sChassisType = (Get-WmiObject -Query "SELECT * FROM Win32_SystemEnclosure").ChassisTypes
Write-Host $sComputerModel $sComputerMake $sChassisType