How to Troubleshoot App-V 5



Similar documents
Effects of VC RunTimes in App-V 5 SP2 with HotFix 4 Deployment Performance

AdminStudio Release Notes. 16 July Introduction New Features... 6

PAf KTl enterprise^ Virtualization Advanced Guide. Microsoft Application. optimize your application virtualization p'atform.

ACTIVE DIRECTORY DEPLOYMENT

PSCAD Installation Errors

Microsoft Corporation. Status: Preliminary documentation

Effects of Generic Com in App-V 5 SP2 Deployment Performance

ILTA HANDS ON Securing Windows 7

AdminStudio Installation Guide. Version 2013

PSCAD. Installation Errors. Written for: PSCAD v4.2 PSCAD X4 (v4.3, v4.4, v4.5, v4.6) Revision: 8 December 10, 2015

Administration Guide. . All right reserved. For more information about Specops Gpupdate and other Specops products, visit

InduSoft Web Studio + Windows XP SP2. Introduction. Initial Considerations. Affected Features. Configuring the Windows Firewall

Click Studios. Passwordstate. Password Discovery, Reset and Validation. Requirements

Running 4D Server as a Service on Windows

Microsoft Corporation. Project Server 2010 Installation Guide

Installation Manual v2.0.0

Client Installation Guide. Version 6.0 SP1

TECHNICAL DOCUMENTATION SPECOPS DEPLOY / APP 4.7 DOCUMENTATION

OUTLOOK ADDIN V1.5 ABOUT THE ADDIN

Using Process Monitor

LT Auditor Windows Assessment SP1 Installation & Configuration Guide

WINDOWS PROCESSES AND SERVICES

Contents. Chapter 1 Introducing virtualized Microsoft Office Chapter 2 Packaging Microsoft Office... 5

Integrated Virtual Debugger for Visual Studio Developer s Guide VMware Workstation 8.0

Installing OneStop Reporting Products

ICT Professional Optional Programmes

Application Packaging Smackdown. events.techtarget.com

System Planning, Deployment, and Best Practices Guide

Team Foundation Server 2010, Visual Studio Ultimate 2010, Team Build 2010, & Lab Management Beta 2 Installation Guide

SPSS. Resolve common problems when installing SPSS. Document Purpose. IT Services.

Installing and Configuring Login PI

The Software Developers Guide to. Making Your Program Work With. Microsoft App-V. Tim Mangan. TMurgent Technologies, LLP

Windows" 7 Desktop Support

Using Management Shell Reports and Tracking User Access in the NetVanta UC Server

XF Extracellular Flux Analyzer. Installation and Troubleshooting Guide

Microsoft Diagnostics and Recovery Toolset 7 Evaluation Guide

TIBCO Spotfire Metrics Prerequisites and Installation

Windows Scheduled Task and PowerShell Scheduled Job Management Pack Guide for Operations Manager 2012

PROJECTIONS SUITE. Database Setup Utility (and Prerequisites) Installation and General Instructions. v0.9 draft prepared by David Weinstein

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

APPLICATION VIRTUALIZATION COMPARISON

GP REPORTS VIEWER USER GUIDE

Windows Intune Walkthrough: Windows Phone 8 Management

Zimbra Connector for Outlook Administrator Guide

SpamTitan Outlook Addin V2.0

APPLICATION VIRTUALIZATION TECHNOLOGIES WHITEPAPER

Using Delphix Server with Microsoft SQL Server (BETA)

Eliminate Memory Errors and Improve Program Stability

Aras Innovator Internet Explorer Client Configuration

This presentation introduces you to the Decision Governance Framework that is new in IBM Operational Decision Manager version 8.5 Decision Center.

Exercise Safe Commands and Audit Trail

Install SQL Server 2014 Express Edition

RAP as a Service for. Team Foundation Server. Prerequisites

Avatier Identity Management Suite

Hands-On Microsoft Windows Server 2008

Sparx Systems Enterprise Architect as an unattended Windows Service on Windows Server 2008R2 and higher VERSION 1.0

Centralized Auditing in Windows Derek Melber

Support Document: Microsoft SQL Server - LiveVault 7.6X

ProficyTM. HMI/SCADA - ifix I MPLEMENTING S ECURITY

App-V Deploy and Publish

Netgotiator AlterEGO User s Manual Getting Started with Netgotiator AlterEGO

TrueEdit Remote Connection Brief

Least Privilege Security for Windows 7, Vista and XP

Security Explorer 9.5. User Guide

How to - Install EventTracker and Change Audit Agent

Microsoft Windows PowerShell v2 For Administrators

App-V Deploy and Publish

Hyper-V Remote Management Configuration Script Contents

Archive Manager Exchange Edition OWA Troubleshooting

MSSQL quick start guide

Contents. Platform Compatibility. Directory Connector SonicWALL Directory Services Connector 3.1.7

WolfTech Active Directory: Diagnostic Tools

Documentation NITCtxPatcher

Training Guide: Configuring Windows8 8

Windows Server 2008 R2: Server Management and PowerShell V2

Buffalo Technology: Migrating your data to Windows Storage Server 2012 R2

Virtual Application Management with Microsoft Application Virtualization 4.6 and System Center 2012 Configuration Manager

Sideload Windows Store Apps in Windows 8

Tutorial: Packaging your server build

Windows 7 / Vista / Server 2008 Considerations Last Updated: March 2, 2012

Using SQL Database Mirroring to Improve Citrix XenApp Server Farm Disaster Recovery Capabilities

Table of Contents Introduction... 2 Azure ADSync Requirements/Prerequisites:... 2 Software Requirements... 2 Hardware Requirements...

Troubleshooting File and Printer Sharing in Microsoft Windows XP

Microsoft Windows Installation and Troubleshooting Guide

WhatsUp Gold v16.0 Database Migration and Management Guide Learn how to migrate a WhatsUp Gold database from Microsoft SQL Server 2005 Express

SQL Server Replication Guide

WhatsUp Gold v16.2 Database Migration and Management Guide

Zimbra Connector for Outlook Administrator Guide

LEARNING SOLUTIONS website milner.com/learning phone

Nexio Connectus with Nexio G-Scribe

DCOM Setup. User Manual

Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5.

Step-By-Step Guide to Deploying Lync Server 2010 Enterprise Edition

How To Configure CU*BASE Encryption

Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide

Using MS-SQL Server with Visual DataFlex March, 2009

Filestream Ltd. File Stream Document Management Integration Overview

MCTS Guide to Microsoft Windows 7. Chapter 7 Windows 7 Security Features

Transcription:

How to Troubleshoot App-V 5 (like a ninja) Dan Gough

About Me Application packaging consultant Contractor working with add3 Windows Installer since 2003 App-V since 2009 App-V MVP since 2 days ago!

About Me Author of blog at packageology.com Twitter handle @packageologist #APPVUGUK

Troubleshooting: App-V 5.0 vs 4.6 Logs now in Event Viewer Powershell instead of sfttray No more PKG files UAC Compatible VCRedists now handled PVAD selection important Global vs User publishing Permissions issues Completely rewritten Completely new bugs!

Beginner Training

Breaking into the Bubble Allow App-V PowerShell cmdlets to run: Set-ExecutionPolicy RemoteSigned (or Unrestricted) Use Start-AppvVirtualProcess command, e.g: Start-AppvVirtualProcess -AppvClientObject (Get- AppvClientPackage *APPNAME*) cmd

Breaking into the Bubble Tools: App-V Manage by Tim Mangan - tinyurl.com/appvmanage ACDC 2.0 by Login Consultants - tinyurl.com/loginacdc App-V Launcher by Andrew Morgan - tinyurl.com/appvlauncher App-V 5 VE Launcher by Immidio - tinyurl.com/immidioappv

Breaking into the Bubble Warning! Virtual process will inherit rights from parent process Unintentionally running applications as admin can affect behaviour Make sure PowerShell and tools are not running elevated App-V Manage always requests admin rights if available. Workaround is to open command prompt, type SET COMPAT_LAYER=RunAsInvoker, then launch the tool from the same window

Viewing User Changes Base registry: HKLM\SOFTWARE\Microsoft\AppV\Client\Packages\<PackageId>\Versions\<VersionId>\REGISTRY HKCU\Software\Classes\AppV\Client\Packages\<PackageId>\Versions\<VersionId>\REGISTRY User changes: HKCU\Software\Microsoft\AppV\Client\Packages\<PackageId>\REGISTRY HKCU\Software\Classes\AppV\Client\Packages\<PackageId>\REGISTRY HKLM\SOFTWARE\Microsoft\AppV\Client\Packages\<PackageId>\REGISTRY (elevated only) Replace Packages\PackageId with PackageGroups\GroupId for Connection Groups!

Viewing User Changes Base files: %PROGRAMDATA%\App-V\<PackageId>\<VersionId>\Root User changes: %APPDATA%\Microsoft\AppV\Client\VFS\<PackageId> (roaming) %LOCALAPPDATA%\Microsoft\AppV\Client\VFS\<PackageId> (non-roaming) Folders under here ending in S denote changes made by elevated users Connection groups store data under the same location but use the GroupId

Viewing User Changes Apps have a different view of the virtual environment if they are launched as admin! Registry Admin cannot see user changes but user can see admin changes PVAD / VFS (Write Enabled) Admin cannot see user changes and vice versa VFS (Write Disabled) User unable to make changes but can see admin changes

Event Viewer Run eventvwr to launch To show debug logs: View -> Show Analytic and Debug Logs

Event Viewer Expand to show debug logs Right-click to enable individual logs PowerShell script from Nicke Källén to enable all debug logs: tinyurl.com/enableappvlogs App-V Manage can also be used to enable debug logs

Error Codes Many error codes are standard Windows error codes: Look them up here: tinyurl.com/systemerrorcodes

Error Codes If application launches then exits immediately, two ways to find an error code are: Using ProcMon, find the Process Exit event and look up the Exit Status Open cmd in the bubble and run the application from there. Output may be shown, also you can view the exit code by typing: echo %ERRORLEVEL%

Troubleshooting Steps Examine Report.xml! This will list any issues picked up by the sequencer, such as device drivers, DCOM etc. It will also list any excluded files (e.g. local appdata) UNCOMFIRMED I have heard from Rory that the sequencer does not always report these issues, they can vary depending on whether or not you chose to install to the PVAD!

Troubleshooting Steps Expand package to local system on sequencer and re-test This will rule out the App-V client from the equation and verify the package contains all required resources

Troubleshooting Steps Install the application natively on the App-V client then re-test Use Repair-AppvClientPackage Extensions command to re-assign shortcuts and file type associations back to the App-V package If application starts working, check for: DCOM/COM+ - tinyurl.com/appvcomplus for guidance Drivers - C:\Windows\System32\DriverStore\FileRepository, sort by date

Expert Training

Permissions Application behaving strangely? Try launching as administrator! VFS Write option solves most permissions issues Procmon does not report ACCESS_DENIED for failed VFS writes If you are using a version prior to v5.0 SP2 Hotfix 4, I have a script to adjust permissions: tinyurl.com/appvpermissions Even if you have write access, you cannot write certain file types: tinyurl.com/appvcow

Virtual Environment Issues PVAD folder is hidden, but contents are still accessible Batch files and reg files run outside the bubble If app fails to find dlls in SysWOW64 folder, copy them to app folder

Changing the PVAD ArcGIS does not work when sequenced to a dummy PVAD:

Connection Groups If using client version prior to 5.0 SP2 Hotfix 5, all apps in a group must be published the same way (either global or per-user) PVAD contents do not merge together Creating a shortcut in one package pointing to an exe in another does not work! Workaround 1 Mirror client paths on sequencer Workaround 2 Launch using a script or cmd.exe as a middleman Blog post coming soon!

COM Integration Try changing COM settings using ACE to modify the config file: Then apply config by either: Set-AppvClientPackage *APPNAME* - DynamicDeploymentConfiguration <PATH> Get-AppvClientPackage *APPNAME* Publish- AppvClientPackage -DynamicUserConfigurationPath <PATH>

Applying Shims Many basic shims such as WINXPSP3 can be applied via registry: HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers Microsoft Application Compatibility Toolkit (ACT) go.microsoft.com/fwlink/p/?linkid=205020 How to apply ACT shim database.sdb files: tinyurl.com/appvact1 tinyurl.com/appvact2 Alternatively by setting COMPAT_LAYER environment variable. This can be done inside the package: tinyurl.com/compatlayer

Using Process Monitor Launch from anywhere without having to download: \\live.sysinternals.com\tools\procmon.exe Use the Process Tree view to see a timeline of launched processes

Using Process Monitor

Using Process Monitor Use the Tree View to set filter to show application and all child processes Use the timeline to see any if any other processes are launched at runtime Highlight all lines with result of NAME NOT FOUND, PATH NOT FOUND and ACCESS DENIED Be aware that the system looks for files in multiple locations before reporting SUCCESS, so not all NOT FOUND results are important When searching for COM objects in the registry the system will look and fail under HKCU\Software\Classes before searching HKLM\Software\Classes

Spy Studio Download from: nektra.com/products/spystudio-api-monitor Similar to ProcMon in nature but with some unique features: Runs in user mode and hooks the application directly, resulting in less noise Visual tree views of loaded/modified files and registry keys Ability to compare traces between natively installed and virtualised apps Can be used to package applications in ThinApp or Symantec Workspace Virtualization when you no longer have the source installer

Special Moves!

How to Fix a Crashing Sequencer If you see either of these errors when sequencing:

How to Fix a Crashing Sequencer Start again, do not launch the application in the streaming phase, and select to save the package immediately without editing. You should see Invalid manifest detected :

How to Fix a Crashing Sequencer Enable ManifestLibrary debug log Import to App-V client and get an error: Looking up error code 7!!!

How to Fix a Crashing Sequencer Run Event Viewer, open ManifestLibrary debug log: Application found to use non-standard way of populating file type associations in the registry Full solution here: tinyurl.com/crashingsequencer

App-V Resources Blogs: applepie.se ittechlog.wordpress.com kirxblog.wordpress.com packageology.com rorymon.com www.softgridblog.com stealthpuppy.com t3chn1ck.wordpress.com tmurgent.com/tmblog trentent.blogspot.co.uk vroom.cc Microsoft Blogs: blogs.msdn.com/b/sgern blogs.technet.com/b/appv blogs.technet.com/b/gladiatormsft madvirtualizer.wordpress.com virtualvibes.co.uk Forums: tinyurl.com/appvforum tinyurl.com/appvrecipes appvirtguru.com

Any Questions?