4 Replies Latest reply on Dec 3, 2018 2:52 PM by Jimmey

    Powershell Windows not showing to Enduser

    Jimmey Rookie

      Im new to Ivanti EPM so this may be a dumb question. I am using EPM 2018 trying to host a software package within the portal manager. I like to run things through power shell using forms to display data to users. I have a script that works fine if I run it locally but it runs hidden when I push it through the portal. I know the script runs fine because the software gets installed as it should. The other thing I have found so far that seems odd is "PowerShell output: Inside Search" from sdclient_TASKID.log. Any push in the right direction would be greatly appreciated.

        • 1. Re: Powershell Windows not showing to Enduser
          LANDeskWizrd SSMMVPGroup

          Open up the "Distribution and Patch" agent setting you are using on the agent or the task, if they are different. Once in there, click on "Distribution-only settings", what do you have checked under "Feedback"?

          • 2. Re: Powershell Windows not showing to Enduser
            Jimmey Rookie

            I have got "Display full package interface" checked.

             

            Here is a copy of the log if it helps.

             

            Mon, 03 Dec 2018 14:24:21 ******* sdclient starting to process task *******

            Mon, 03 Dec 2018 14:24:21 Task id to process: 183

            Mon, 03 Dec 2018 14:24:21 Command line: /policyfile="C:\ProgramData\LANDesk\Policies\CP.183._kmUbFIqxOAE2lnH5GQVyT1ia0FE=.xml" /skipmaintenancewindow /skipdonotdisturb

            Mon, 03 Dec 2018 14:24:21 The nostatus flag has NOT been set.

            Mon, 03 Dec 2018 14:24:21 Core name 'IVANTIEPM' obtained from the registry

            Mon, 03 Dec 2018 14:24:21 Sending task status, cmd line -coreandip=IVANTIEPM -taskid=183 -retcode=229392442 "-ldap=" -pkgid=50

            Mon, 03 Dec 2018 14:24:22 File () is not in cache

            Mon, 03 Dec 2018 14:24:22 The nostatus flag has NOT been set.

            Mon, 03 Dec 2018 14:24:22 Core name 'IVANTIEPM' obtained from the registry

            Mon, 03 Dec 2018 14:24:22 Sending task status, cmd line -coreandip=IVANTIEPM -taskid=183 -retcode=229392444 "-ldap=" -pkgid=50

            Mon, 03 Dec 2018 14:24:23 About to call DownloadFiles (172 files) with these settings:

            Mon, 03 Dec 2018 14:24:23 m_allowedBandwidthWAN: 100

            Mon, 03 Dec 2018 14:24:23 m_allowedBandwidthLAN: 100

            Mon, 03 Dec 2018 14:24:23 m_discardPeriodSeconds: 604800

            Mon, 03 Dec 2018 14:24:23 m_preserveDirectoryStructure: 1

            Mon, 03 Dec 2018 14:24:23 m_bUseWanBWForPush: 0

            Mon, 03 Dec 2018 14:24:23 m_bSynchronize: 0

            Mon, 03 Dec 2018 14:24:23 Allowed download methods(m_downloadControl):

            Mon, 03 Dec 2018 14:24:23 PeerOneSource

            Mon, 03 Dec 2018 14:24:23 Peer

            Mon, 03 Dec 2018 14:24:23 Source

            Mon, 03 Dec 2018 14:24:23 m_preferredServerControl: AttemptPreferredServer

            Mon, 03 Dec 2018 14:24:27 The nostatus flag has NOT been set.

            Mon, 03 Dec 2018 14:24:27 Core name 'IVANTIEPM' obtained from the registry

            Mon, 03 Dec 2018 14:24:27 Sending task status, cmd line -coreandip=IVANTIEPM -taskid=183 -retcode=229392444 "-message=100%" -pkgid=50

            Mon, 03 Dec 2018 14:24:27 The nostatus flag has NOT been set.

            Mon, 03 Dec 2018 14:24:27 Core name 'IVANTIEPM' obtained from the registry

            Mon, 03 Dec 2018 14:24:27 Sending task status, cmd line -coreandip=IVANTIEPM -taskid=183 -retcode=229392258 "-ldap=" -pkgid=50

            Mon, 03 Dec 2018 14:24:28 ExpandEnvironmentVariables Result:

            Mon, 03 Dec 2018 14:24:28 SetPackageForRun: no return code mappings for Install ArcGIS

            Mon, 03 Dec 2018 14:24:28 PowerShell file Client Thread

            Mon, 03 Dec 2018 14:24:28 Powershell install value is: [1]

            Mon, 03 Dec 2018 14:24:28 Powershell version is: [2.0]

            Mon, 03 Dec 2018 14:24:39 PowerShell output: Inside search

            Inside search

            Inside search

             

            Mon, 03 Dec 2018 14:24:39 Installation result 0

            Mon, 03 Dec 2018 14:24:39 Rebooting system if needed

            Mon, 03 Dec 2018 14:25:06 processing of package is complete, result 0 (0x00000000 - code 0)

            • 3. Re: Powershell Windows not showing to Enduser
              Jimmey Rookie

              So I found why its not showing but not how to fix it. When the script is run through sditps1, -noninteractive is added by default. Is there anywhere in EPM that allows this setting to be changed?

              • 4. Re: Powershell Windows not showing to Enduser
                Jimmey Rookie

                Found a fix, I needed to call the ps1 from a bat in order for the PS GUI to show.