How to find out what EmCmdLet.dll can do

Version 1

    Verified Product Versions

    Environment Manager 10.0Environment Manager 10.1Environment Manager 8.6Environment Manager 8.5Environment Manager 2018.1

    Introduction

    You may find that you are unsure of what EmCmdLet.dll can do for you and how it can be used.

     

    Solution

    The EmCmdLet.dll module is a simple Powershell module provided with Environment Manager 8.5 onwards. It exports its commands so they can be inquired using Powershell as below:

     

    Get-Module 'C:\Program Files\Appsense\Environment Manager\Agent\EmCmdLet.dll' -ListAvailable | % { $_.ExportedCommands.Values }

     

    This should output a tabled format of all calls available. As of 10.1 FR4, this looks like this:

     

    Image: Clear-SessionVariable, Get-SessionVariable, Set-SessionVariable, Test-SessionVariable, Import-EMPManagedAppData, Export-EMPManagedAppData, Sync-DesktopSettings, Test-EmUserOperations

     

    Each of these calls is descriptively named and should provide enough of a lead into what its function is.

     

    IMPORTANT: The EmCmdLet.dll module relies on communication with EmUser.exe which is not available during logoff. Attempting to use the module during logoff will fail. If there is a requirement to interact with applications during logoff, use the /APPSENSESPECIAL switch documented here instead: https://community.ivanti.com/docs/DOC-45786.