jaegermaster

//jaegermaster
jaegermaster

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • jaegermaster
    Participant
    Post count: 29

    nearer :

    $DismOutput = Execute-process -Path ‘Dism.exe’ -Parameters “/online /Get-Capabilities /Limitaccess” -passthru

    Write-Log “Check below output to see installed components :”

    Write-Log $DismOutput.StdOut

    • This reply was modified 8 months, 1 week ago by  jaegermaster.
  • jaegermaster
    Participant
    Post count: 29

    Hi, thanks a lot, I didn’t think of that

    we are almost there 🙂

    I used

    $DismOutput = Execute-process -Path ‘Dism.exe’ -Parameters “/online /Get-Capabilities /Limitaccess” -passth
    Write-Log $DismOutput

    and I get all output in same line

    is there a way of having the line breaks , menaing one line in log per line in the stdout?

    I am thinking of using an array and doing a write-log for each line

  • jaegermaster
    Participant
    Post count: 29

    Sorry,

    I want to get back the the ouptut in script log

  • jaegermaster
    Participant
    Post count: 29

    Ok let me clarify :

    here is what happens when I launch one of those commands in prompt

    <code>
    C:\WINDOWS\system32&gt;Dism /online /Get-Capabilities /Limitaccess
    
    Deployment Image Servicing and Management tool
    Version: 10.0.14393.0
    
    Image Version: 10.0.14393.0
    
    Capability listing:
    
    Capability Identity : App.Support.ContactSupport~~~~0.0.1.0
    State : Installed
    
    Capability Identity : App.Support.QuickAssist~~~~0.0.1.0
    State : Installed
    
    Capability Identity : Language.Basic~~~en-US~0.0.1.0
    State : Installed
    
    Capability Identity : Language.Handwriting~~~en-US~0.0.1.0
    State : Installed
    
    Capability Identity : Language.OCR~~~en-US~0.0.1.0
    State : Installed</code>

    I want to get back the the ouptu in write log

    and yes dism can log in a seperate log, but I want it inside the PSADT script log, just like SCCM does with the smsts.log for task sequences

  • jaegermaster
    Participant
    Post count: 29

    oops forgot the execute-process format on that Dism command sorry 🙂

  • jaegermaster
    Participant
    Post count: 29

    Hello,

    Getting back , I try this and didn’t produce anything :

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

    ## Call the Exit-Script function to perform final cleanup operations
    Exit-Script -ExitCode $mainExitCode
    }
    Catch {
    [int32]$mainExitCode = 60001
    [string]$mainErrorMessage = “$(Resolve-Error)”
    Write-Log -Message $mainErrorMessage -Severity 3 -Source $deployAppScriptFriendlyName
    Show-DialogBox -Text $mainErrorMessage -Icon ‘Stop’
    Show-InstallationPrompt -Message “Installation failed.nn Please relaunch installation or contact your LocalIT if needed.” -ButtonRightText ‘OK’ -Icon Information -NoWait
    Exit-Script -ExitCode $mainExitCode
    }

  • jaegermaster
    Participant
    Post count: 29

    You create a copy of this function trimmed with only what you need and put in PSADT extensions so that you don’t modify the maintoolkit and you could keep it after upgrade of PSADT

  • jaegermaster
    Participant
    Post count: 29
  • jaegermaster
    Participant
    Post count: 29
  • jaegermaster
    Participant
    Post count: 29

    New feature request :

    Execute-AppX : install/uninstall appx 🙂

  • jaegermaster
    Participant
    Post count: 29
  • jaegermaster
    Participant
    Post count: 29

    If it is unclear don’t hesitate to ask me more 🙂

    I think this would be a nice addition to PADT , espacially if we could configure this in the xml

  • jaegermaster
    Participant
    Post count: 29

    Hi thank you for your interest

    All you needed to know is :

    [Installation] :: Execution failed with exit code [-805306369] Execute-Process 12.10.2015 12:21:26 1 (0x0001)

    When this happens by builtin in PADT , we just get the little bubble in systray “installation failed”

    This happens with any action that fails in installation phase with execute-process or Execute-Msi , Copy-File , etc…

    I would like to create a dialog box to the user when one of these action fails “Installation failed, please try to relaunch Installation or call HelpDesk”

    I think the bubble is not “intrusive” enough 🙂

  • jaegermaster
    Participant
    Post count: 29

    I just got the baloon tip but I would like to give the user a big popup that the installation failed

  • jaegermaster
    Participant
    Post count: 29

    [Installation] :: Update progress message: [Installing Office 2013 Professional Plus (Step 2/4).
    This might take some time. Please wait…] Show-InstallationProgress 12.10.2015 12:18:15 1 (0x0001)
    [Installation] :: [W:\2-Packaging\Microsoft-Office2013ProPlus_EN\Package\B\Files\Setup.exe] is a valid path, continue Execute-Process 12.10.2015 12:18:15 1 (0x0001)
    [Installation] :: Working Directory is [W:\2-Packaging\Microsoft-Office2013ProPlus_15.0.4569.1506_EN\Package\B\Files] Execute-Process 12.10.2015 12:18:15 1 (0x0001)
    [Installation] :: Executing [W:\2-Packaging\Microsoft-Office2013ProPlus_15.0.4569.1506_EN\Package\B\Files\Setup.exe /adminfile “W:\2-Packaging\Microsoft-Office2013ProPlus_15.0.4569.1506_EN\Package\B\Files\updates\Office2013ProPlus.MSP” /config “W:\2-Packaging\Microsoft-Office2013ProPlus_15.0.4569.1506_EN\Package\B\Files\ProPlus.WW\Config.xml”]… Execute-Process 12.10.2015 12:18:15 1 (0x0001)
    [Installation] :: Execution failed with exit code [-805306369] Execute-Process 12.10.2015 12:21:26 1 (0x0001)
    [Installation] :: Close the installation progress dialog. Close-InstallationProgress 12.10.2015 12:21:26 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [communicator.exe]. Unblock-AppExecution 12.10.2015 12:21:26 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [excel.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [groove.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [infopath.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [lync.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [mspub.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [onenote.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [outlook.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [powerpnt.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [visio.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [winproj.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Remove the Image File Execution Options registry key to unblock execution of [winword.exe]. Unblock-AppExecution 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Retrieve Scheduled Tasks Get-ScheduledTask 12.10.2015 12:21:27 1 (0x0001)
    [Installation] :: Delete Scheduled Task [Microsoft_Office2013ProPlus_15.0.4569.1506B_EN_B_BlockedApps]. Unblock-AppExecution 12.10.2015 12:21:28 1 (0x0001)
    [Installation] :: [C:\Windows\System32\schtasks.exe] is a valid path, continue Execute-Process 12.10.2015 12:21:28 1 (0x0001)
    [Installation] :: Working Directory is [C:\Windows\System32] Execute-Process 12.10.2015 12:21:28 1 (0x0001)
    [Installation] :: Executing [C:\Windows\System32\schtasks.exe /Delete /TN Microsoft_Office2013ProPlu_EN_B_BlockedApps /F]… Execute-Process 12.10.2015 12:21:28 1 (0x0001)
    [Installation] :: Execution completed successfully with exit code [0] Execute-Process 12.10.2015 12:21:28 1 (0x0001)
    [Installation] :: Microsoft_Office2013ProPlus_15.0.4569.1506B_EN_B Installation completed with exit code [-805306369]. Exit-Script 12.10.2015 12:21:28 1 (0x0001)
    [Installation] :: Display balloon tip notification asyhchronously with message [Installation failed.] Show-BalloonTip 12.10.2015 12:21:28 1 (0x0001)
    [Installation] :: [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe] is a valid path, continue Execute-Process 12.10.2015 12:21:29 1 (0x0001)
    [Installation] :: Working Directory is [C:\Windows\System32\WindowsPowerShell\v1.0] Execute-Process 12.10.2015 12:21:29 1 (0x0001)
    [Installation] :: Executing [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe [PowerShell ScriptBlock]]… Execute-Process 12.10.2015 12:21:29 1 (0x0001)
    [Installation] :: NoWait parameter specified. Continuing without waiting for exit code… Execute-Process 12.10.2015 12:21:29 1 (0x0001)
    [Installation] :: ——————————————————————————- Exit-Script 12.10.2015 12:21:29 1 (0x0001)

Viewing 15 posts - 1 through 15 (of 24 total)