Hello. I would like to ask how could I work with LN using com-object via PowerShell.
Right now I came up with:
$LotusSession = New-Object -ComObject Lotus.NotesSession
$LotusSession.Initialize(“mypass”)
$LotusDatabase = $LotusSession.GetDatabase(“srv”,“mail\my.nsf”)
Write-Host -ForegroundColor Green "Database open : " $LotusDatabase.Title
$LotusFolder = $LotusDatabase.GetView(‘folder\subfolder\subsubfolder’)
$NotesDate = $LotusSession.CreateDateTime(“2015-01-01”)$Query = “@Contains( Subject; ““mytest”” )”
$LotusDocuments = $LotusDatabase.Search($Query, $NotesDate, 0)
Thing is: I would like to move items between folders (views) and also mark them as read/unread. I couldn’t find any methods in com-object those do this.