Write-Log : The term 'Write-Log' is not recognized

//Write-Log : The term 'Write-Log' is not recognized
Write-Log : The term 'Write-Log' is not recognized 2018-01-19T21:34:43+00:00

The Toolkit Forums General Write-Log : The term 'Write-Log' is not recognized

  • Author
    Posts
  • Prashant
    Participant
    Post count: 3

    Hello, I’m trying to deploy my first app using PSADT (7zip) . I’m getting in error near the last lines (Write-Log : The term ‘Write-Log’ is not recognized as a cmdlet, function, or script. Any suggestions how i can resolve this. Write-log shows up at the very end of Deploy-Application.ps1. The block of code is below.

    <pre class=”brush: powershell; gutter: true; first-line: 1; highlight: []; html-script: false”>
    Catch {
    [int32]$mainExitCode = 60001
    [string]$mainErrorMessage = “$(Resolve-Error)”
    Write-Log -Message $mainErrorMessage -Severity 3 -Source $deployAppScriptFriendlyName
    Show-DialogBox -Text $mainErrorMessage -Icon ‘Stop’
    Exit-Script -ExitCode $mainExitCode
    }

  • Prashant
    Participant
    Post count: 3

    Can close this topic. Started a project on another machine and it’s working.

You must be logged in to reply to this topic.