Tuesday, August 22, 2017

Update detection


From time to time you may need to check the updates installed on a target client.

Here's a couple of articles which discuss the method of doing this
http://www.alexandreviot.net/2014/10/03/configmgr-2012-application-detection-method-for-software-update/

https://stackoverflow.com/questions/9347985/how-to-read-installed-updates-view-installed-updates-from-registry-on-vista-or

below is a modified version of the scripts to exit with a 0 for success or 1 for fail (not present)

'Returns if Windows KB2758857 installed
Option Explicit
Dim objWMI, strComputer
strComputer = "."

'Run the query
Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &strComputer& "\root\cimv2")

Dim listPatches
Dim patch
Set listPatches = objWMI.ExecQuery ("Select * from win32_QuickFixEngineering where HotFixID like 'KB2758857'")

For Each patch in listPatches

If patch.HotFixID = "KB2758857" then

'Update found. Exit loop here with 0
'wscript.echo patch.HotFixID

wscript.quit 0

End If

Next

'List checked but patch not found. Exit with 1
WScript.Quit 1

Wednesday, August 9, 2017

ZoomText and SCCM


Check ZoomText setup.exe for the -sccm switch.  It has a history of issues running in the system context.  The -sccm attempts to resolve them.

Articulate Storyline 2


Attempting to sequence Articulate Storyline 2 will likely result in a problem on the client where the software effectively realizes it has been "lifted and dropped".

On launch the software will error with:
Articulate Storyline has been deactivated. Please run as admin to reactivate.











Standard users will not be able to do this.  Using an admin account is useless because it only activates it for that account.

If available, Appsense may provide an option by allowing the application to run elevated.  It does not look like it will store the serialnumber even if it is included in the sequence via the SERIALNUMBER MSI property.  The user would need to know and enter it for themselves.

Further information.
The HKLM\Software\Microsoft\Crytography\RNG key is involved here.  You can see that an admin activation results in this key and others being generated in
HKLM\SOFTWARE\Microsoft\AppV\Client\Packages\<PackageGUID>\REGISTRY\MACHINE\Software....

Thursday, August 3, 2017

App-V 5x version history


https://docs.microsoft.com/en-us/microsoft-desktop-optimization-pack/appv-v5/about-app-v-51

App-V Version Reference

5.0 RTM              5.0.285.0
5.0 hotfix1           5.0.515.0
5.0 SP1                5.0.1104.0
5.0 SP2                5.0.3361.0
5.0 SP2 hotfix 2   5.0.3384.0 (Clients Only)
5.0 SP2 hotfix 4   5.0.3400.0
5.0 SP2 hotfix 5   5.0.3404.0 (Clients Only)
5.0 SP2 hotfix 6   ?
5.0 SP3                 5.0.10107.0 (sequencer does not upgrade previous versions. The previous version must be removed first.  Client version DOES upgrade.


5.1 client prereqs
.NET 4.5.1 required (KB2858728))
Powershell 3.0 (KB2506143) or higher
Windows 7 Update KB25333623 https://support.microsoft.com/en-us/help/2533623/microsoft-security-advisory-insecure-library-loading-could-allow-remot

5.1 sequencer prereqs
.NET 4.5.1 required (KB2858728))
Powershell 3.0 (KB2506143) or higher

5.1 HF08 sequencer prereqs
above plus KB25333623

update:
KB2533623 superceded by DB2758857
https://sccmentor.com/2013/07/30/kb2533623-superseded-by-kb2758857/

5.1                                    5.1.85.0
5.1                                    5.1.86.0
5.1 HF01                          5.1.99.0 (CO = Clients Only)
5.1 HF02                          5.1.101.0 (CO)
5.1 HF03                          5.1.104.0 (CO)
5.1 June 2016 SR             5.1.106.0 (CO)
5.1 HF05                          5.1.108.0 (CO)
5.1 Sept 2016 SR             5.1.115.0 (CO)
5.1 HF07                          5.1.116.0 (CO)
5.1 HF08  Mar2017 SR    5.1.118 - Offline Client and Sequencers will need a certificate installed.  Clients update, Sequencers full install.

Installing the HF08 sequencer (AppV5.1RTM_Sequencer_KB4014009.exe) can be a bit of a mission.
You must install the KB2533623 update first
If the sequencer is offline then you will need to install the Microsoft Root CA certificate.
How to export the MS Root CA certificate
https://support.microsoft.com/en-us/help/555252
From experience you can just double click and install but make sure you choose Trusted Root Certification Authorities.
How to install a root certificate.
https://msdn.microsoft.com/en-us/library/cc750534.aspx


More detailed client release / version info here
https://support.microsoft.com/en-us/kb/2940578

Tim's page is probably more up to date though
http://www.tmurgent.com/appv/en/resources/app-v-5-versions

Note that the Client UI application has its own version which does not correspond to the App-V Client version.

Windows 10 Anniversary Update version 1607 contains an App-V client which reports itself as 5.2 in the registry location
HKLM\SOFTWARE\Microsoft\AppV\Client\Version

General Microsoft End of Support information (End of Life)
https://support.microsoft.com/en-us/lifecycle/search

App-V 4.6 SP3 ended Mainstream support 14/07/2015
http://www.tmurgent.com/AppV/en/resources/app-v-4-versions

http://parlakyigit.net/ebooks/App_V_Versions.pdf