diff --git a/README.md b/README.md index 60bf5fe..14c6538 100644 --- a/README.md +++ b/README.md @@ -1186,7 +1186,7 @@ `Get-VBRBackupServerCertificate` \ `Get-VBRRestorePoint` \ `Get-VBRViProxy` \ -`https://veeam-11:9419/swagger/ui/index.html` RAST API +`https://veeam-11:9419/swagger/ui/index.html` API # XML @@ -1202,17 +1202,17 @@ `else {return}` \ `}` -`$FilterXPath = ''` -`$RDPAuths = Get-WinEvent -ComputerName $srv -LogName "Microsoft-Windows-TerminalServices-LocalSessionManager/Operational" -FilterXPath $FilterXPath` -`[xml[]]$xml = $RDPAuths | Foreach {$_.ToXml()}` -`$EventData = Foreach ($event in $xml.Event) {` -`New-Object PSObject -Property @{` -`"Connection Time" = (Get-Date ($event.System.TimeCreated.SystemTime) -Format 'yyyy-MM-dd hh:mm K')` -`"User Name" = $event.UserData.EventXML.User` -`"User ID" = $event.UserData.EventXML.SessionID` -`"User Address" = $event.UserData.EventXML.Address` -`"Event ID" = $event.System.EventID` -`}}` +`$FilterXPath = ''` \ +`$RDPAuths = Get-WinEvent -ComputerName $srv -LogName "Microsoft-Windows-TerminalServices-LocalSessionManager/Operational" -FilterXPath $FilterXPath` \ +`[xml[]]$xml = $RDPAuths | Foreach {$_.ToXml()}` \ +`$EventData = Foreach ($event in $xml.Event) {` \ +`New-Object PSObject -Property @{` \ +`"Connection Time" = (Get-Date ($event.System.TimeCreated.SystemTime) -Format 'yyyy-MM-dd hh:mm K')` \ +`"User Name" = $event.UserData.EventXML.User` \ +`"User ID" = $event.UserData.EventXML.SessionID` \ +`"User Address" = $event.UserData.EventXML.Address` \ +`"Event ID" = $event.System.EventID` \ +`}}` \ `$EventData` # Git