Posts

How to clear App-V Cache

This has become my favorite site today because one of the issue which I was facing in App-V while testing was because the App-V cache was not getting cleared. I used one of the method used here and it worked for me. I want to share this link with all and want to bookmark it for myself for future reference. http://esense.be/33/2010/04/15/softgrid-clear-the-appv-cache/ In Summary, these are a few good options to start with: First, get a list of all AppV applications: sftmime query obj:app /short Remove all applications from the cache: sftmime.exe remove obj:app /global /complete Remove a specific application from the cache: sftmime.exe remove app:”applicationName” /complete Hope your issues are solved with this as well.

App-V with Java/JRE/JDK

It is very critical to understand how to handle installation of Java related applications in App-V environment. While some are of the view that the application should be installed along with Java in the same bubble while some say that the Java version installed on the base machine can be used. Here is how you can do both of these in a proper way: 1) Java installed locally on the machine: If Java is locally installed on the machine and you capture the App-V application, then you will see a hard coded entry in the registry. This basically points the App-V application to look for Java in this local machine location. If you upgrade your Java version from say 1.6.21 to 1.6.24, then you do not need to worry, however, if you do a major upgrade from 1.6.21 to 1.7.xx then you need to upgrade your App-V Application as well. You need to maintain the software library for all these applications and then upgrade them as part of Java Upgrade in the organization. 2) Java is installed as local copy in...

Detection Method for MSU in Applications for SCCM 2012

In SCCM 2012 Applications you can have a detection method set for MSU with KB numbers. You can use the Powershell or VBScript to do this. Here is an example of both. Powershell Script: get-hotfix | Where-Object {$_.HotFixID -match "KB981603"} VBScript: 'Returns info if Windows 'KB981603'  in installed ' ----------------------------------------------------------' Option Explicit Dim objWMIService, strComputer strComputer = "." 'Run the query Set objWMIService = GetObject("winmgmts:" _     & "{impersonationLevel=impersonate}!\\" _     & strComputer & "\root\cimv2")   Dim QFEs Dim QFE Set QFEs = objWMIService.ExecQuery ("Select * from win32_QuickFixEngineering where HotFixID like 'KB981603'") For Each QFE in QFEs     Wscript.echo "Update KB981603 was installed by " & QFE.InstalledBy & " on " & QFE.InstalledOn Next WScript.Quit

VBScript to Delete Registrly key and all subkeys

This script has worked good for me and I would like to share with all. Option Explicit     Dim intHive     Dim strComputer     Dim strKeyPath, objRegistry     Const HKEY_CLASSES_ROOT        = &H80000000     Const HKEY_CURRENT_USER    = &H80000001     Const HKEY_LOCAL_MACHINE    = &H80000002     Const HKEY_USERS        = &H80000003     Const HKEY_CURRENT_CONFIG    = &H80000005     'On Error Resume Next     strComputer            = "."     intHive                = HKEY_LOCAL_MACHINE       strKeyPath            = "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ABC\XYZ"     Set objRegistry        = GetObject("winmgmts:\\" & strComputer & "\...

VBScript to Delete Folder and all SubFolders with files

Here is the VBScript which will delete all Folders and Subfolders with even have files in it. It took me so many hours to find this perfect script and all credits go to Rob van der Woude and the original script is here: http://www.robvanderwoude.com/vbstech_folders_deltree.php I just want to keep this for my reference and for everyone so that we all can save some time. Option Explicit Dim objFSO, objTempFolder, strTempFolder Const TEMP_FOLDER = 2 Set objFSO        = CreateObject( "Scripting.FileSystemObject" ) Set objTempFolder = objFSO.GetSpecialFolder( TEMP_FOLDER ) strTempFolder     = objTempFolder.Path DelTree strTempFolder, True Sub DelTree( myFolder, blnKeepRoot ) ' With this subroutine you can delete folders and their content, ' including subfolders. ' You can specify if you only want to empty the folder, and thus ' keep the folder itself, or to delete the folder itself as well. ' Root directories and some (not all)...

Permissions to registry using setacl

Recently I was trying giving permission to one of the registry hives with Subinacl, but it was not working despite all efforts and checking all the syntax and a lot of troubeshooting. Then I came across another permission granting utility known as SetACL. It worked like a charm. So you can try using this utility is Subinacl fails. You can download SetACL from  http://helgeklein.com/download/ Here is an example to run SetACL to give registry permissions. "SetACL.exe" -on "hkcr\Interface" -ot reg -actn setowner -ownr "n:Administrators" "SetACL.exe" -on "hkcr\Interface" -ot reg -actn ace -ace "n:Users;p:full" Object name (-on) : This is the path to the object SetACL should operate on (file/directory/registry key/network share/service/printer). Object type (-ot) : What kind of object does the object name refer to: file or directory (file), registry key (reg), service (srv), printer (prn), network share (shr)? Action (-actn) : What...

Install MSP file with MSI

While handling with MSP of applications, sometimes a question comes in mind that can an MSP be installed along with MSI? The answer is yes, but with a few conditions involved. The conditions are explained later in the post with some description. First I will give you the command line to install MSP along with MSI: msiexec /i {Path to MSI}\Installer.MSI PATCH={Path to MSP}\Patch.MSP /qb If there is a transform as well to add you can include it in the command line as well. msiexec /i {Path to MSI}\Installer.MSI TRANSFORMS={Path to Transform}\Transform.MST PATCH={Path to MSP}\Patch.MSP /qb The only thing which you have to take care in the command line is that you will have to give a complete path to MSP. Relative paths do not work in this case. This will apply the patch as in the updated files will be installed from the patch rather than from the MSI. This process is greatly useful when there are a lot of patches to be applied to an MSI. There might be cases that the MSI is alrea...