Online Help > PowerShell Scripting

New-RDMLogComment

SYNOPSIS

Create a log comment.

 

SYNTAX

New-RDMLogComment -Comment [Comment] <String> -EndDateTime [EndDateTime] <Nullable`1> -Notes [Notes] <String> -Session [Session] <PSConnection> -StartDateTime [StartDateTime] <DateTime> [<CommonParameters>]

 

DESCRIPTION

Create and insert a new log comment.

 

PARAMETERS

  -Comment <String>

Log comment.

 

  -EndDateTime <Boolean>

End date.

 

  -Notes <String>

(Required) Log notes.

 

  -Session <PSConnection>

(Required) Session object, must be retrieved from Get-RDMSession or created via New-RDMSession.

 

  -StartDateTime <DateTime>

(Required) Start date.

 

  <CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer and OutVariable.For more information, type, "get-help about_commonparameters".

 

NOTES

For more information, type "Get-Help New-RDMLogComment -detailed". For technical information, type "Get-Help New-RDMLogComment -full".

 

EXAMPLE 1

PS C:\> $sessions = Get-RDMSession;$date = Get-Date;New-RDMLogComment -Comment "MyComment" -Notes "MyNotes" -Session $sessions[2] -StartDateTime $date -EndDateTime $date.AddDays(3)

 

Create & save a new log comment.

 

RELATED LINKS