8.3. Windows Hosts

A Windows host describes a Windows machine whose Windows Event Logs you want to search or monitor. It is not a shell account: Retrospective sends a read-only PowerShell script to the machine and reads the events it returns. Nothing is installed on the machine and nothing on it is modified.

You do not need a Windows host to read the event logs of the computer Retrospective is running on. If that computer runs Windows, its logs appear as localhost in the Event Log Browser straight away.

Add one with i-host-add Add host in the Host Manager, and choose Windows Host as the type. What the machine itself needs is described in Preparing Hosts and Security.

The Windows host editor with the SSH transport selected

Fig. 8.10 The Windows host editor. The Connection Endpoint group carries the transport choice, the machine’s address and the one Port field that follows the transport you pick.

The editor is split into two tabs, like the one for SSH hosts. Standard holds everything you need to reach the machine: the endpoint and transport in Connection Endpoint, the sign-in in Authentication, and the Customization box. Advanced holds the host’s PowerShell budgets, its jump server and its proxy, all described below.

Retrospective generates the description from the entered data, in the format user@host. Once you type a description of your own, it is no longer updated. When you save a host whose generated description no longer matches its data, the Outdated Description dialog asks whether to adopt the proposed new description.

8.3.1. Choosing How Retrospective Connects

The transport is the one real decision on this page, and you make it once per host. It is the first row of the Connection Endpoint group on the Standard tab, above Description.

Both channels do the same thing at the far end: they run the PowerShell that is already part of Windows on the target machine, so nothing has to be installed there. They differ only in how the script is delivered. The information bullet i-info-bullet beside each choice says so. Under SSH you can opt in to PowerShell 7 where it is installed; see below.

Your computer runs

The Windows machine is

Choose

Windows, macOS or Linux

anything

SSH — the machine needs its OpenSSH Server switched on once

Windows

a domain-joined Windows Server

WinRM — usually needs no setup at all, and can sign you in as your own Windows account

macOS or Linux

anything

nothing to choose — see On macOS and Linux below

SSH is the one that always works: it is pure Java, so it runs from any operating system. New hosts start with the transport set in Default transport for new hosts on the Windows Event Log preferences page, which is SSH unless you change it. WinRM is Windows’ own remote-management channel. It is already enabled for most domain-joined Windows Servers. That makes it the shortcut when your computer and the target are both Windows and both in the same domain.

One Port field sits beside Host, and it follows the transport. Under SSH it holds the SSH port, which defaults to 22. Under WinRM it holds the WinRM port, prefilled with 5985, or 5986 with HTTPS. Switching the transport swaps the value. Retrospective remembers each port, so switching back restores the value you typed, and saving stores both. A port must lie between 1 and 65535. Under SSH an invalid entry is flagged Port must be between 1 and 65535, and under WinRM Enter a port 1–65535, or clear the field for the default.

Selecting WinRM also shows one checkbox, on the WinRM row itself and to the right of it:

Setting

Description

Use HTTPS (SSL)

Connects over WinRM HTTPS instead of plain HTTP, and moves the Port default from 5985 to 5986. The machine needs an HTTPS listener and a certificate your computer trusts. Leaving it clear does not send your credentials in the open — the traffic is still encrypted by the Windows authentication layer.

The WinRM port keeps following the checkbox for as long as you have not typed one yourself. Overwrite it only if the machine listens on a non-standard port. To let Windows pick the default for the scheme, clear the field.

Selecting SSH shows one checkbox on the SSH row instead:

Setting

Description

Use PowerShell 7 if installed

Off by default. When it is on, the machine runs PowerShell 7 if it is installed in its standard folder, C:\Program Files\PowerShell\7, and the built-in Windows PowerShell otherwise. PowerShell 7 reads the Security log three to four times faster. The option needs the SSH server’s default shell to be the Windows default, the Command Prompt. If an administrator changed it, searches on that host fail; clear the box.

Note

The transport is a property of the host definition, so it is fixed for everything you do with that host. If you change your mind later, edit the host and switch it — nothing else about the definition has to change.

8.3.2. On macOS and Linux

WinRM needs a Windows-only component, so it cannot be used when Retrospective itself runs on macOS or Linux. There, the Transport row states SSH as plain text with its information bullet, next to Use PowerShell 7 if installed. No WinRM control is shown at all: no choice, no Use HTTPS (SSL), no WinRM port. Kerberos SSO disappears from Method for the same reason: it runs over WinRM only.

New hosts are created on SSH regardless of what Preferences has stored. That preference page hides its Default transport for new hosts group and its PowerShell path. A stored host that uses WinRM opens with the SSH transport, and a Kerberos SSO sign-in falls back to Password. When the sign-in is complete, Save is available as soon as such a host is opened, so it can be stored with the SSH transport without another edit.

8.3.3. Signing in

The Method in the Authentication group depends on the transport, because the two channels do not offer the same options.

Method

Available with

What you provide

Password

both

A username and password for an account on the Windows machine.

SSH key

SSH only

A username, your private key file and its Keyphrase, if it has one. Choose the file with i-browse-file SSH key file. The key is read into Retrospective, as described in SSH Keys. The matching public key has to be deployed on the machine.

Kerberos SSO

WinRM only

Nothing. Retrospective connects as the Windows account you are already logged on with — no username, no password, nothing stored.

If you switch the transport while a method is selected that the new transport does not offer, Retrospective falls back to Password. On macOS and Linux Kerberos SSO is not offered at all, because the WinRM transport it rides is not available there.

Whichever method you use, the account does not need administrator rights. Membership of the Event Log Readers group covers every log, including the Security log. WinRM additionally needs Remote Management Users. SSH on Windows Server 2025 needs OpenSSH Users. See Preparing Hosts and Security.

8.3.4. Customization

The Customization box at the bottom of the Standard tab holds Adjust time offset, which works exactly as it does for SSH hosts; see Log Time Synchronization.

8.3.5. Jump Servers and Proxies

When the transport is SSH, a Windows host can be reached through a jump server or a proxy, just like an SSH host. On macOS and Linux that is always the case. Both live in the Connection Options group on the Advanced tab, together with the Connection chain. They behave as described in Jump Server and Proxy Server.

Under WinRM they are grayed out, because WinRM has no tunnel concept. The tab then says: Jump server and proxy apply to the SSH transport only. Whatever you configured is kept, so switching back to SSH restores it.

The Host Manager’s Add host dialog asks only for the folder and the host type, so add the host first and then set its jump server or proxy in the host editor.

8.3.6. How Many PowerShells This Host May Use

Retrospective reads a Windows host’s event logs by running PowerShell against it. The top of the Connection Options group on the Advanced tab decides how many it may run at once, for this host alone. Both settings apply whichever transport you chose.

Setting

Range

Description

Event Logs (PowerShells)

1–10, default 10

The most PowerShells used at the same time to search and monitor this host’s event logs. Lower it for a small or busy machine. The lower it is, the more likely a starvation situation, in which further activities wait idly for a PowerShell to become free.

Max. allocated PowerShells

1–5, default 3

How many PowerShells an optimized source may claim. Retrospective optimizes a source when it contains wildcards covering many event logs or providers, or when a profile bundles many individual sources. A single event log of 10 000 or more events, searched on its own or alone in its part of a wildcard or folder source, is read in up to this many non-overlapping parts at once. Each part counts as a source in the search progress. Monitoring always reads a log in one piece.

Both values are suggestions. Retrospective may exceed them when the logs use many encodings, or when a command would otherwise grow too long. Changing either has no effect on a search or monitoring session that is already running; the new value is used the next time one is started.

The Add host dialog does not offer these either. Add the host first, then set them in the host editor. The equivalent limits for the computer Retrospective itself runs on stay in File ‣ Preferences ‣ Search/Monitor ‣ System Resources. The built-in localhost entry of the Event Log Browser is the local computer and needs no host definition.

A host you define is always reached over its transport, even when its address is localhost or another loopback address. An example is a Windows container whose WinRM or SSH port is published on this computer. Such a host connects over WinRM or SSH to that port, with its own credentials, exactly like a host on another machine. Only its description cannot be localhost or local drive, so that it cannot be mistaken for a built-in entry.

Settings that a Windows host deliberately does not have:

  • Identity change (sudo) and execution priority (nice) — both modify a shell command line, and there is no shell here.

  • Terminal encoding — that setting belongs to the SSH Console, which connects to SSH hosts only.

8.3.7. Testing the Connection

Press Test to check the definition before you rely on it. Retrospective opens the connection, starts PowerShell on the machine and asks it for the metadata of the Application log. On success you get:

Connection to PowerShell event-log service successful.

A second line reports the clock difference between the machine and your computer, for example No date/time difference between the remote host and the local computer was detected.

Check connectivity is selected by default and runs the same test every time you save the host. The test is skipped when the save removes a stored password or keyphrase. When you add a Windows host with i-host-add Add Windows host in the Event Log Browser, the test is not optional. Pressing OK verifies the connection first and stores the host only if it worked, so a broken definition never reaches your host list.

If the test fails, the message names the cause; the common ones are listed under Troubleshooting.

A host that uses the SSH transport is identified by its host key, like any SSH host. The test report then ends with a line about that key. Remove stored key appears beside Save when Retrospective has stored the key, or when you trusted it for this session. See Host Key.

Note

WinRM is available only when Retrospective itself runs on Windows, because it relies on a Windows-only component — see On macOS and Linux.