Write-ProgressIndicator

SYNOPSIS

Write a . to the console, indicating an activity

SYNTAX

Write-ProgressIndicator [<CommonParameters>]

DESCRIPTION

Write a . to the console, indicating an activity

EXAMPLES

Example 1

function foo
{
    [CmdletBinding()]
    param
    ()

    foreach ($thing in $things)
    {
        #Long running operation. Need to have output.
        Write-ProgressIndicator
        sleep 120
    }
    Write-ProgressIndicatorEnd
}

Write . to the console host as long as loop is processing

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES