Long

Long

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Long
    Participant
    Post count: 14

    Found solution

    Remove-MSIApplications -Name 'Microsoft Silverlight' -ExcludeFromUninstall (,('DisplayVersion', '5.1.50907.0', 'Exact')) -Exact

  • Long
    Participant
    Post count: 14

    …I did some checks.

    Have two type of mashine….the autologons and the normal where there is a real user logged on.

    On the normal we will prompt the user to accept the update.

    On the autologon we force shutdown the app and update. Reboot so it start correct up again after the update.

    Got with working with above input.

    Preinstall: Execute-ProcessAsUser -Path “$($envWinDir)\System32\logoff.exe” -RunLevel LeastPrivilege

    post install : Show-InstallationRestartPrompt -Countdownseconds 10

  • Long
    Participant
    Post count: 14

    …I did some checks.

    Have two type of mashine….the autologons and the normal where there is a real user logged on.

    On the normal we will prompt the user to accept the update.

    On the autologon we force shutdown the app and update. Reboot so it start correct up again after the update.

    Got with working with above input.

    Preinstall: Execute-ProcessAsUser -Path “$($envWinDir)\System32\logoff.exe” -RunLevel LeastPrivilege

    post install : Show-InstallationRestartPrompt -Countdownseconds 10

  • Long
    Participant
    Post count: 14

    I will give above method a try.

    another think…when the user is logged of and the installation done…

    can i then use:

    Show-InstallationRestartPrompt -Countdownseconds 10

    or should i use “Restart-Computer”

    • This reply was modified 8 months, 3 weeks ago by  Long.
  • Long
    Participant
    Post count: 14

    The usage i need is this:

    We have some lockdown workstation for some informations board. With Autologin. So there will always be someone logged in.

    I need to close some app down before installing the update. All this unattended with no user input.
    That why i run the shutdown /l to log off the currently logged in user and then run the script.

    The content is executed with the system account and with elevated privilèges. Somehow the “shutdown /l” cut off the script.

    Using SCCM2012R2 for the deployment.

    • This reply was modified 8 months, 3 weeks ago by  Long.
  • Long
    Participant
    Post count: 14

    No have not resolve it. Use execute-process as work around for now. It really strange cause it worked before.

  • Long
    Participant
    Post count: 14

    I found the solution.

    ADD -IgnoreExitCodes ‘256’ to the line

    Execute-Process “$env:ProgramFiles\Driver\dpinst.exe” -Parameters “/S /Path “”$env:ProgramFiles\Driver\CustomDrivers””” -WindowStyle ‘Normal’ -IgnoreExitCodes ‘256’

  • Long
    Participant
    Post count: 14

    Thanks…the tool it self doesnt write the script YOU do so it only save you some seconds every time in the end we just need to do think smarter 😀

  • Long
    Participant
    Post count: 14

    the Show-InstallationWelcome

    does not reboot the mashine or?? when nobody is logged on?

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