Skip to content

JoinStatus

The machine's workgroup or domain membership.

Returned by join_status.

Example

let status = winnet.join_status()
if (status.kind == :DOMAIN:)
  echo "joined to $(status.name)"
else
  echo "not domain-joined"

Fields

kind @ (:DOMAIN: | :WORKGROUP: | :UNJOINED: | :UNKNOWN:)

How the machine is named on the network, or :UNKNOWN: when the state could not be determined.

name @ (Str | nil)

Domain or workgroup name, or nil when kind is :UNJOINED: or :UNKNOWN:.