Why not uninstall the software from my pc?

Comments

4 comments

  • Shane Corellian

    %LOCALAPPDATA% is a user level variable. When you run a remote command (which is what the Uninstall feature uses) it will expand %LOCALAPPDATA% as the user running the command, not as any local user that is logged on. This means if the application is installed in "C:\Users\Jon.Jones\AppData\local..." but you run the Remote Command using the credentials long_zhao, the command would expand %LocalAppData% as "C:\Users\long_zhao\AppData\local..."

    Also, you had a forward slash in the first example and a back slash in the second. You want to use the forward slash /s for your parameter. 

    Below is an example of a remote command expanding the LocalAppData variable. 

    LocalAppData.png

    0
    Comment actions Permalink
  • long

    thank you.

    in order to  uninstall the software what was installed  in "C:\Users\firstname_lastname\AppData\local\.."  of  many PC ,   which command should be appropriate?

     

    0
    Comment actions Permalink
  • long

    unique way is to uninstall one by one?

    0
    Comment actions Permalink
  • Shane Corellian

    You wouldn't want to use PDQ Inventory for this. You have three options:

    1) When the user's are logged on to their computers deploy a package that contains one Command step.

    2) Write a script which traverses the C:\Users directory and runs this command on all the uninst.exe files it finds under the dict directory.

    3) Place the uninstall string a .bat file that is executed in a User level Group Policy.

    Here are some screenshots to illustrate option 1. Remember that the user needs to be logged on for this to work. This is also assuming that the command, path and uninstall parameter are all correct.

    Uninstall_User_App_Details.png

     

    Uninstall_User_App_Conditions.png

     

    Uninstall_User_App_Options.png

     

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.