Close Menu
    Facebook X (Twitter) Instagram
    Tuesday, May 20
    X (Twitter) LinkedIn
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»SCCM 2007»SCCM removal of app-v applications from client machines script based

    SCCM removal of app-v applications from client machines script based

    Eswar KonetiBy Eswar KonetiJune 19, 8:01 pm2 Mins Read SCCM 2007 4,134 Views
    Share
    Facebook Twitter LinkedIn Reddit

    The standard way to remove Advertised app-v applications from client machines is to set expiration of the advertisement /deletion with setting “remove this package from client when no longer advertised” and it should work though it takes a while but this procedure doesn’t work.

    Recently had an issue with App-v Applications(machines having both msi and app due to which some settings may not work ) where in these apps are not removed from client machines though advertisement is “expired” and checked “ Remove this package from client when no longer advertised” from package properties . Also deleted the advertisement to see if the app-v package disappears or not but no result.

    Note : Streaming option is not enabled on DP.

    Searched everywhere and tried many possibilities to make this work but did not find anything for the root cause.

    So came up with simple batch script that checks if the app-v package is available on the machine or not if exist ,it will remove from the cache completely.

    If you have advertisement which is still enable and run on the machine,you will be back with app-v application so ensure you expire the advertisement or not to rerun the advertisement on the machine /do not make the computer as member of app-v collection.

    You can simply create program with below batch script and advertise onto collection where you don't want this app to be.

    Bold Letters require changes what you need with respect to applications.

    REM Script to remove the app-v applications from machine

    REM Written by eskonr 19-06-2012

    Set RegQry=HKLM\Hardware\Description\System\CentralProcessor\0
    REG.exe Query %RegQry%  | Find /i "x86"
    If %ERRORLEVEL% == 0 (
        GOTO X86
    ) ELSE (
        GOTO X64
    )

    :X86

    cd "C:\Program Files\Microsoft Application Virtualization Client"

    sftmime.exe remove app:"Adobe Reader" /complete

    GOTO END

    )

    :X64

    Set RegQry="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\SoftGrid\4.5\Client\Applications\Adobe Reader"
    REG.exe Query %RegQry% | Find /i "Adobe Reader"
    If %ERRORLEVEL% == 0 (
    cd "C:\Program Files (x86)\Microsoft Application Virtualization Client"

    sftmime.exe remove app:"Adobe Reader" /complete

    GOTO END

    )

    :END

    if you have any other better way to do this or why standard way doesn't work ,please post your comments.

    Hope it helps someone who is having similar issue :).

    app-v packages are not removing configmgr issue with app-v packages remove app-v packages from sccm client machines SCCM 2007 script to remove appv packages sccm System center configuration Manager
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    Monitoring Endpoint Security Applications with SCCM ConfigMgr SQL

    October 11, 8:48 pm

    Application Deployment with Hybrid Joined Requirement Rules in Intune

    October 06, 8:59 pm

    3 Comments

    1. John on October 15, 2012 6:48 PM

      I believe you can just use SFTMIME.exe for this

      http://technet.microsoft.com/en-us/library/cc843829.aspx

      Reply
      • Eswar Koneti on October 15, 2012 8:00 PM

        I used the same what you said but i have added one more condition to check if it is X86 or X64.
        Did you check that ?

        Reply
    2. eddie on September 8, 2012 12:41 AM

      so, i think you have a extra open ) before the :x64...

      thanks for the script tho!

      Reply

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2024 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.