Start program as logged on user after install?

//Start program as logged on user after install?
Start program as logged on user after install?2017-02-27T15:30:27+00:00

The Toolkit Forums General Start program as logged on user after install?

  • Author
    Posts
  • Per
    Participant
    Post count: 3

    Greetings to all
    I would like to start cisco jabber as logged on user, after an uninstall and reinstall with PADT. I know it can be done with a PS script. From the help file
    “”Execute-ProcessAsUser -Path “$PSHOME\powershell.exe” -Parameters “-Command & { & "C:\Test\Script.ps1“; Exit `$LastExitCode }” -Wait””
    Execute process under a user account by using the default active logged in user that was detected when the toolkit was launched.
    I would like to start “C:\Program Files (x86)\Cisco Systems\Cisco Jabber\CiscoJabber.exe”, after the installation. Is it possible, or can it only be done with a PS script?
    Best regards
    Per

  • Francois
    Participant
    Post count: 105

    Hi,

    Did you tried using an active-setup?

    Thanks,

    • Per
      Participant
      Post count: 3

      Hi Francois
      What do you mean with an “Active-Setup”?

      Regards
      Per

  • Justin
    Participant
    Post count: 13

    Put this in the POST-INSTALLATION section of your script.

    Execute-ProcessAsUser -Path 'C:\Program Files (x86)\Cisco Systems\Cisco Jabber\CiscoJabber.exe' -RunLevel LeastPrivilege

    This should run the application in the user context.

    • This reply was modified 1 year, 4 months ago by  Justin. Reason: Added code tags
    • Per
      Participant
      Post count: 3

      Hi Justin
      Great, that did it 🙂
      Thanx a lot

      Regards
      Per

    • Francois
      Participant
      Post count: 105

      Hi,

      The function set-activesetup.

      Thanks,

You must be logged in to reply to this topic.