Chris

//Chris
Chris

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Chris
    Participant
    Post count: 4

    Hi Ronny,

    Sorry for taking so long to reply.

    No, I did not find an answer to this before my self-imposed deadline. So I ended up modifying the Deploy-Application.ps1 script to:

    1) Copy the app deploy package to a folder in C:\Windows\Temp
    2) Create a scheduled task at first user login to run Deploy-Application.ps1
    3) If the script is NOT deferred, then the temp copy and the scheduled task are deleted at the end of the script being run from the SCCM package.
    4) If it IS deferred, the scheduled task launches the install script when the user logs back in to a fresh session.

    Seems to be working for my purposes. Hope this helps. Can provide code if you like 🙂

    Best,

    Chris

  • Chris
    Participant
    Post count: 4

    Thanks Francois. I guess that’s where I’m having trouble. Where would I force an exit with 0? Would it be something like this:

    ##*===============================================
    ##* END SCRIPT BODY
    ##*===============================================

    ## Call the Exit-Script function to perform final cleanup operations
    Exit-Script -ExitCode=”0″

    appreciate your time.

    Chris

Viewing 2 posts - 1 through 2 (of 2 total)