- #Windows script control 64 bit how to
- #Windows script control 64 bit 64 Bit
- #Windows script control 64 bit 32 bit
To access the registry of remote computers, the Remote Regsitry service needs to be running, the Remote Registry service can be enabled and started remotely using SC.exe The script returns, the Computer Name, Application Name, Vendor, Installation date, Uninstall key/command, GUID and Architecture (32 or 64 bit). The output will default to " C:\batch\Installed_Programs.csv" When running this script, provide a path for the Excel/CSV $OutputFile plus the computers to inventory.
#Windows script control 64 bit how to
# Now we have the registry locations, call the function which will enumerateįor instructions of how to download and run this script see: Run a PowerShell script. $Applications = $UninstallRef.GetSubKeyNames() $UninstallRef = $HKLM.OpenSubKey($UninstallRegKey) $HKLM = ::OpenRemoteBaseKey('LocalMachine',$computer,$RegistryView) # Get the reg key(s) where add/remove program information is stored. $RegistryViews = ( $RegistryView in $RegistryViews )
#Windows script control 64 bit 64 Bit
# If 64 bit check both 32 and 64 bit locations in the registry If ((Get-WmiObject -Class Win32_OperatingSystem -ComputerName $Computer -ea 0).OSArchitecture -eq '64-bit') If(Test-Connection -ComputerName $Computer -Count 1 -ea 0) $OutputObj | export-csv -append -noTypeinformation -path $OutputFile $OutputObj | Add-Member -MemberType NoteProperty -Name Arch -Value '64' $OutputObj | Add-Member -MemberType NoteProperty -Name Arch -Value '32' $OutputObj | Add-Member -MemberType NoteProperty -Name AppGUID -Value $AppGUID $OutputObj | Add-Member -MemberType NoteProperty -Name UninstallKey -Value $AppUninstall $OutputObj | Add-Member -MemberType NoteProperty -Name InstalledDate -Value $AppInstalledDate $OutputObj | Add-Member -MemberType NoteProperty -Name AppVendor -Value $AppPublisher $OutputObj | Add-Member -MemberType NoteProperty -Name AppVersion -Value $AppVersion $OutputObj | Add-Member -MemberType NoteProperty -Name AppName -Value $AppDisplayName $OutputObj | Add-Member -MemberType NoteProperty -Name ComputerName -Value $Computer.ToUpper()
![windows script control 64 bit windows script control 64 bit](https://www.2brightsparks.com/syncback/help/scripteditor.png)
$OutputObj = New-Object -TypeName PSobject $AppUninstall = $($AppDetails.GetValue("UninstallString")) $AppInstalledDate = $($AppDetails.GetValue("InstallDate")) $AppPublisher = $($AppDetails.GetValue("Publisher")) $AppVersion = $($AppDetails.GetValue("DisplayVersion")) $AppDetails = $HKLM.OpenSubKey($AppRegistryKey) $AppRegistryKey = $UninstallRegKey + "\\" + $App
![windows script control 64 bit windows script control 64 bit](https://www.practical365.com/wp-content/uploads/2011/02/exchange-2010-install-management-tools-windows-7-01.png)
# and output one object for each Application with all its properties. # This function will loop through the applications installed on one PC Remove-Item $OutputFile -ErrorAction Silentl圜ontinue $UninstallRegKey="SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall" $OutputFile = " C:\batch\Installed_Programs.csv" HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ There are also equivalent locations for per-user software under HKCU, these are mainly used for things like Browser Plugins, Citrix applications and small utility programs, these are NOT scanned by the script below. There are several registry locations where installed software is logged:Ħ4 bit = HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ģ2 bit = HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
![windows script control 64 bit windows script control 64 bit](https://www.msoutlook.info/pictures/productkey-ospp.png)
#Windows script control 64 bit 32 bit
It will include both 32 bit and 64 bit software. How-to: List the installed software Ī script to inventory the software installed on one or more computers.