description | ms.date | ms.topic | title |
---|---|---|---|
Use verbose message in DSC resource |
06/28/2023 |
reference |
DSCUseVerboseMessageInDSCResource |
Severity Level: Information
Best practice recommends that additional user information is provided within commands, functions and
scripts using Write-Verbose
.
Make use of the Write-Verbose
command.
Function Test-Function
{
[CmdletBinding()]
Param()
...
}
Function Test-Function
{
[CmdletBinding()]
Param()
Write-Verbose 'Verbose output'
...
}