< Back

Get-Quote

Mon Jan 13, 2020 8:21 pm

NAME Get-Quote



SYNOPSIS

This function displays a randomly chosen quote from a quote file





SYNTAX

Get-Quote [[-QuoteFile] <Object>] [<CommonParameters>]





DESCRIPTION

Displays a random quote/cookie/fortune/message-of-the-day





PARAMETERS

-QuoteFile <Object>

A file containing quotes; will use '.\\fortunes.dat' by default.



Required? false

Position? 1

Default value "$PSScriptRoot\\Fortunes.dat"

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.String





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-Quote



I've had a perfectly wonderful evening. But this wasn't it.

-- Groucho Marx











RELATED LINKS